Skip to content

Commit

Permalink
remove publication from datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
normanrz committed Aug 4, 2022
1 parent 61d357b commit 22bfe14
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions app/models/binary/DataSetService.scala
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,6 @@ class DataSetService @Inject()(organizationDAO: OrganizationDAO,
lastUsedByUser <- lastUsedTimeFor(dataSet._id, requestingUserOpt) ?~> "dataset.list.fetchLastUsedTimeFailed"
dataStoreJs <- dataStoreService.publicWrites(dataStore) ?~> "dataset.list.dataStoreWritesFailed"
dataSource <- dataSourceFor(dataSet, Some(organization), skipResolutions) ?~> "dataset.list.fetchDataSourceFailed"
publicationOpt <- Fox.runOptional(dataSet._publication)(publicationDAO.findOne(_)) ?~> "dataset.list.fetchPublicationFailed"
publicationJson <- Fox.runOptional(publicationOpt)(publicationService.publicWrites) ?~> "dataset.list.publicationWritesFailed"
worker <- workerDAO.findOneByDataStore(dataStore.name).futureBox
jobsEnabled = conf.Features.jobsEnabled && worker.nonEmpty
} yield {
Expand All @@ -383,7 +381,6 @@ class DataSetService @Inject()(organizationDAO: OrganizationDAO,
"logoUrl" -> logoUrl,
"sortingKey" -> dataSet.sortingKey,
"details" -> dataSet.details,
"publication" -> publicationJson,
"isUnreported" -> Json.toJson(isUnreported(dataSet)),
"isForeign" -> dataStore.isForeign,
"jobsEnabled" -> jobsEnabled,
Expand Down
1 change: 1 addition & 0 deletions frontend/javascripts/types/api_flow_types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export type APITeam = {
export type APIPublicationAnnotation = {
readonly id: string;
readonly name: string;
readonly description: string;
readonly tracingStore: APITracingStore;
readonly dataSet: APIDataset;
};
Expand Down

0 comments on commit 22bfe14

Please sign in to comment.