Skip to content

Commit

Permalink
Merge remote-tracking branch 'nih/main' into biolucida-image
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-wu committed Nov 12, 2024
2 parents 0bc2bcb + 3edd991 commit 340fbe4
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 23 deletions.
1 change: 0 additions & 1 deletion .github/workflows/pull_request_cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ jobs:
- name: Automated Run Testing when Pull Request
if: steps.checkUser.outputs.require-result == 'true'
uses: cypress-io/github-action@v6
timeout-minutes: 30
env:
ROOT_URL: ${{ secrets.ROOT_URL }} # http://localhost:3000
with:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/quality_control_cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ jobs:
env:
ROOT_URL: "https://sparc.science"
uses: cypress-io/github-action@v6
timeout-minutes: 30
with:
wait-on: ${{ env.ROOT_URL }}
record: true
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/scheduled_production_cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ jobs:

- name: Schedule Run Testing against Production
uses: cypress-io/github-action@v6
timeout-minutes: 30
env:
ROOT_URL: "https://sparc.science"
with:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/scheduled_staging_cypress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ jobs:

- name: Schedule Run Testing against Staging
uses: cypress-io/github-action@v6
timeout-minutes: 30
env:
ROOT_URL: "https://staging.sparc.science"
with:
Expand Down
5 changes: 3 additions & 2 deletions components/BfDownloadFile/BfDownloadFile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@

<script>
import StorageMetrics from '@/mixins/bf-storage-metrics'
import { propOr } from 'ramda'
const DEFAULT_ARCHIVE_NAME = 'sparc-portal-data'
Expand Down Expand Up @@ -193,8 +194,8 @@ export default {
file_path: "",
file_type: "",
category: "",
dataset_id: "",
version_id: "",
dataset_id: this.dataset.id,
version_id: this.dataset.version,
doi: "",
citation_type: "",
location: ""
Expand Down
8 changes: 4 additions & 4 deletions components/FilesTable/FilesTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -730,8 +730,8 @@ export default {
file_type: pathOr('', ['row','fileType'], scope),
location: "",
category: "",
dataset_id: "",
version_id: "",
dataset_id: this.datasetInfo.id,
version_id: this.datasetVersion,
doi: "",
citation_type: "",
files: ""
Expand Down Expand Up @@ -767,8 +767,8 @@ export default {
file_type: "",
location: "",
category: "",
dataset_id: "",
version_id: "",
dataset_id: this.datasetInfo.id,
version_id: this.datasetVersion,
doi: "",
citation_type: ""
})
Expand Down
11 changes: 7 additions & 4 deletions pages/datasets/[datasetId].vue
Original file line number Diff line number Diff line change
Expand Up @@ -249,10 +249,13 @@ export default {
getOrganizationIds(algoliaIndex),
getContributorsFromAlgolia(algoliaIndex, datasetId)
])
const datasetDetailsContributors = algoliaContributors?.map(contributor => {
const filteredAlgoliaContributors = algoliaContributors.filter(contributor =>
contributor.first || contributor.last
)
const datasetDetailsContributors = filteredAlgoliaContributors?.map(contributor => {
return {
firstName: contributor.first.name,
lastName: contributor.last.name,
firstName: contributor.first?.name,
lastName: contributor.last?.name,
orcid: contributor.curie?.replace('ORCID:', '')
}
})
Expand All @@ -269,7 +272,7 @@ export default {
name: propOr('', 'organizationName', datasetDetails)
}
]
const contributors = algoliaContributors?.map(contributor => {
const contributors = filteredAlgoliaContributors?.map(contributor => {
const sameAs = contributor.curie
? `http://orcid.org/${contributor.curie.replace('ORCID:', '')}`
: null
Expand Down
21 changes: 12 additions & 9 deletions pages/news-and-events/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,18 @@
<newsletter-form />
<div class="newsletter-archive mt-16">
<div class="heading2 mt-24">Current Newsletter</div>
<div ref="newsletterArchive" id="newsletter-archive" />
<a class="mt-8" href="//us2.campaign-archive.com/home/?u=e60c48f231a30b544eed731ea&id=c81a347bd8"
target="_blank">
View all Newsletters<svgo-icon-open />
</a>
<div>
<a class="mt-8" href="https://docs.sparc.science/docs/sparc-plug-current"
target="_blank">
Read the current SPARC Plug Newsletter<svgo-icon-open />
</a>
</div>
<div>
<a class="mt-8" href="https://docs.sparc.science/docs/sparc-plug-newsletter-archive"
target="_blank">
View Newsletters Archive<svgo-icon-open />
</a>
</div>
</div>
</el-col>
<el-col :xs="24" :sm="12" class="newsletter-wrap right-panel">
Expand Down Expand Up @@ -149,10 +156,6 @@ export default {
}
},
mounted() {
this.$injectNewsletterArchive('#newsletter-archive')
},
watch: {
'$route.query': {
handler: async function() {
Expand Down

0 comments on commit 340fbe4

Please sign in to comment.