Skip to content

Commit

Permalink
Rename getCompositeDatasetInfo to getDatasetDetails
Browse files Browse the repository at this point in the history
There is nothing particularly "composite" related about it.
  • Loading branch information
davelopez committed Oct 12, 2023
1 parent ca69990 commit eb0c5ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/src/components/Dataset/DatasetLink/DatasetLink.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</template>

<script>
import { getCompositeDatasetInfo } from "components/Dataset/services";
import { getDatasetDetails } from "components/Dataset/services";
import { mapCacheActions } from "vuex-cache";
export default {
Expand Down Expand Up @@ -57,7 +57,7 @@ export default {
});
} else {
// download whole dataset
getCompositeDatasetInfo(this.history_dataset_id).then((response) => {
getDatasetDetails(this.history_dataset_id).then((response) => {
this.pathDestination = { fileLink: `${response.download_url}?to_ext=${response.file_ext}` };
});
}
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Dataset/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function getCompositeDatasetLink(historyDatasetId: string, path: string)
}

const getDataset = fetcher.path("/api/datasets/{dataset_id}").method("get").create();
export async function getCompositeDatasetInfo(id: string) {
export async function getDatasetDetails(id: string) {
const { data } = await getDataset({ dataset_id: id });
return data;
}

0 comments on commit eb0c5ac

Please sign in to comment.