Skip to content

Commit

Permalink
Merge pull request #276 from lincbrain/ak-upgrade-ds
Browse files Browse the repository at this point in the history
Upgrade dandischema to 0.10.4, Update UI references to dandi CLI instead of lincbrain CLI
  • Loading branch information
aaronkanzer authored Nov 18, 2024
2 parents 522a2cf + f6fd4af commit d847519
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
include_package_data=True,
install_requires=[
'celery',
'dandischema~=0.10.1',
'dandischema==0.10.4',
'django~=4.1.0',
'django-admin-display',
# Require 0.58.0 as it is the first version to support postgres' native
Expand Down
6 changes: 3 additions & 3 deletions web/src/components/FileBrowser/FileUploadInstructions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
>
<div>{{ downloadCommand }}</div>
<div>> cd {{ dandisetIdentifier }}</div>
<div>> lincbrain organize &lt;source_folder&gt; -f dry</div>
<div>> lincbrain organize &lt;source_folder&gt;</div>
<div>> lincbrain upload</div>
<div>> dandi organize &lt;source_folder&gt; -f dry</div>
<div>> dandi organize &lt;source_folder&gt;</div>
<div>> dandi upload -i linc</div>
</v-sheet>
</div>
</div>
Expand Down
15 changes: 6 additions & 9 deletions web/src/views/DandisetLandingView/DownloadDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,6 @@
label="Draft"
value="draft"
/>
<v-radio
label="Latest version"
value="latest"
/>
<v-radio
label="Other version"
value="other"
Expand Down Expand Up @@ -121,18 +117,19 @@ import { useDandisetStore } from '@/stores/dandiset';
import CopyText from '@/components/CopyText.vue';
function formatDownloadCommand(identifier: string, version: string): string {
if (version === 'draft') {
const baseUrl = import.meta.env.VITE_APP_DANDI_API_ROOT === 'https://staging-api.lincbrain.org/api/'
const baseUrl = import.meta.env.VITE_APP_DANDI_API_ROOT === 'https://staging-api.lincbrain.org/api/'
? 'https://staging.lincbrain.org/dandiset/'
: 'https://lincbrain.org/dandiset/';
return `lincbrain download ${baseUrl}${identifier}/draft`;
if (version === 'draft') {
return `dandi download ${baseUrl}${identifier}/draft`;
}
if (!version) {
return `lincbrain download DANDI:${identifier}`;
return `dandi download ${baseUrl}:${identifier}`;
}
return `lincbrain download DANDI:${identifier}/${version}`;
return `dandi download ${baseUrl}:${identifier}/${version}`;
}
Expand Down

0 comments on commit d847519

Please sign in to comment.