Skip to content

feat(rdm.migration): Configurable auto-adding secondary community#544

Open
sakshamarora1 wants to merge 1 commit into
CERNDocumentServer:masterfrom
sakshamarora1:feat/add_publications_to_cern_research
Open

feat(rdm.migration): Configurable auto-adding secondary community#544
sakshamarora1 wants to merge 1 commit into
CERNDocumentServer:masterfrom
sakshamarora1:feat/add_publications_to_cern_research

Conversation

@sakshamarora1

Copy link
Copy Markdown
Contributor


# Public research publication resource types that are auto-included in the CERN Research community.
PUBLIC_RESEARCH_RESOURCE_TYPES = {
# "publication-dissertation", # Already included by the migrator for thesis records.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can you add it for completeness? especially useful in case we missed any thesis records in the past migrations...

communities = record.get("communities", [])
communities = self.communities_ids + [slug for slug in communities]

scientific_community = current_app.config.get(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can you add a failsafe like in the other PRs to check if the variable is set? does it fail silently now? maybe it makes sense to add this case to tests

@sakshamarora1 sakshamarora1 force-pushed the feat/add_publications_to_cern_research branch from bf187da to 4eab511 Compare July 2, 2026 13:52
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.

Migration workflow: add research types to CERN_SCIENTIFIC_COMMUNITY

2 participants