Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make it easier to run SHARE with OSF locally #10386

Conversation

aaxelb
Copy link
Contributor

@aaxelb aaxelb commented Apr 21, 2023

(note: includes #10385 )

Purpose

make it easier to run SHARE with OSF locally

try it out with CenterForOpenScience/SHARE#806 (see the share quickstart doc for setting it up locally)

(using local SHARE with the registries discover page depends on CenterForOpenScience/ember-osf-web#1849 )

Changes

  • fix infinite redirect when setting up a provider with share
  • use INTERNAL_DOMAIN for provider assets (so SHARE can fetch an icon)
  • update docker-compose.yml to work with local SHARE

QA Notes

Please make verification statements inspired by your code and what your code touches.

  • Verify
  • Verify

What are the areas of risk?

Any concerns/considerations/questions that development raised?

Documentation

Side Effects

Ticket

@aaxelb aaxelb force-pushed the quest/local-share branch 2 times, most recently from 453ef07 to 15ba09a Compare July 24, 2023 19:11
- remove osf:affiliatedInstitution (use osf:affiliation instead)
- use dcterms:conformsTo to link osf registration schema
- remodel funding info (add osf:hasFunding, osf:FundingAward)
- add osf:isPartOfCollection for osf-collection membership
- express subjects as skos:Concept
aaxelb and others added 13 commits August 2, 2023 09:43
- use dcterms:Agent instead of osf:Agent
- promote osf:funder to a top-level property (osf:hasFunding alongside)
- fix infinite redirect when setting up a provider with share
- use `INTERNAL_DOMAIN` for provider assets (so SHARE can fetch an icon)
- update docker-compose.yml to work with local SHARE
…#10051)

* redirect rr to workflow and remove dead code.

* consolidate routes and remove superfluous function

---------

Co-authored-by: John Tordoff <>
@aaxelb aaxelb changed the base branch from develop to feature/search-improvements-2023 August 8, 2023 18:40
Copy link
Member

@mfraezz mfraezz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple drive-by questions, but generally looks good. Only major thing is the GHA build failures, most of which (currently, at least) are import or linting errors. Pass complete :octocat:

@@ -65,6 +80,11 @@ def add_arguments(self, parser):
action='store_true',
help='recatalog metadata for non-registration projects (and components)',
)
# type_group.add_argument(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this have a comment as a future TODO, or did you mean to implement this behavior but haven't gotten to it yet?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is a near-future TODO (someone made a ticket for it and everything)

osf/models/registrations.py Show resolved Hide resolved
website/settings/defaults.py Show resolved Hide resolved
once upon a time, sharev2 did not handle subtractive metadata updates.
removing subjects from osf preprints became a very visible symptom of
sharev2's limitation, and so yet another special case was added: hold
"old subjects" after update so they can be included with "is_deleted"

now, this is no longer necessary or helpful.
when building an index-card of metadata, include license and funding
info for related osf objects (e.g. for a file's containing project)
@mfraezz mfraezz merged commit f022e16 into CenterForOpenScience:feature/search-improvements-2023 Aug 11, 2023
4 of 6 checks passed
mfraezz pushed a commit that referenced this pull request Aug 16, 2023
* Update metadata vocabularies
* Support DataCite schema version 4.4
* Specify OSFMAP
mfraezz pushed a commit that referenced this pull request Aug 18, 2023
* Update metadata vocabularies
* Support DataCite schema version 4.4
* Specify OSFMAP
mfraezz added a commit that referenced this pull request Aug 22, 2023
* OSFMAP Search Improvements (#10386)
* [ENG-4618] User Search metadata (#10428)
* [fixes] Search Improvement tests (#10432)
* Fix Search Improvement test (#10435)
* [Fix] Filterable "resourceNature" (#10434)
* Add Withdrawal metadata to SHARE (#10430)
* [ENG-4617] Send File Metadata to SHARE (#10436)
* Fix: Skip sending non-provider collections to SHARE (#10439)
* Optimize recatalog_metadata via celery (#10440)
* fix: send utf-8 to shtrove (#10437)
* [fix] Search/Metadata back-compat and fixes (#10443)
* [fix] Add missing registration component metadata (#10444)
* d42708e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants