Skip to content

add(faser): new models and transformation rules#525

Merged
kpsherva merged 2 commits into
CERNDocumentServer:masterfrom
zubeydecivelek:faser-model
Jul 16, 2026
Merged

add(faser): new models and transformation rules#525
kpsherva merged 2 commits into
CERNDocumentServer:masterfrom
zubeydecivelek:faser-model

Conversation

@zubeydecivelek

Copy link
Copy Markdown
Contributor

No description provided.

@zubeydecivelek zubeydecivelek linked an issue May 22, 2026 that may be closed by this pull request
5 tasks
@zubeydecivelek
zubeydecivelek force-pushed the faser-model branch 3 times, most recently from 5a1ae44 to b80fdd9 Compare June 9, 2026 14:35
@zubeydecivelek
zubeydecivelek force-pushed the faser-model branch 2 times, most recently from 5c9c961 to c5cb66e Compare June 25, 2026 10:21
@zubeydecivelek zubeydecivelek changed the title add(faser-draft): new model and transformation rules add(faser): new models and transformation rules Jun 25, 2026
@zubeydecivelek
zubeydecivelek force-pushed the faser-model branch 6 times, most recently from 53f5e25 to b178502 Compare June 26, 2026 14:56
Comment thread cds_migrator_kit/rdm/records/transform/xml_processing/rules/faser_drafts.py Outdated
Comment thread cds_migrator_kit/rdm/records/transform/models/faser_publication.py Outdated
Comment thread cds_migrator_kit/rdm/records/transform/models/faser_drafts.py Outdated
Comment thread cds_migrator_kit/rdm/migration_config.py Outdated
Comment thread cds_migrator_kit/transform/xml_processing/rules/base.py
@zubeydecivelek
zubeydecivelek force-pushed the faser-model branch 2 times, most recently from ecbe233 to c7c9763 Compare July 9, 2026 14:36
@zubeydecivelek
zubeydecivelek marked this pull request as ready for review July 9, 2026 14:48
@zubeydecivelek
zubeydecivelek force-pushed the faser-model branch 2 times, most recently from 1078762 to d162634 Compare July 14, 2026 16:00
Comment on lines +73 to +85
@model.over("access_grants", "^506[1_]_", override=True)
@for_each_value
def access_grants(self, key, value):
"""Translates status field."""
restriction_access_notes = value.get("a", "").strip().lower()
# TODO: how to handle these values? resource type?
if restriction_access_notes and restriction_access_notes not in [
"faser-confnote",
"faser-confpaper",
"faser-preprint",
"faser-slide",
]:
raise UnexpectedValue(subfield="a", field=key, value=value)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This field is different than normal access_grants field. I dont think these are related with access. What should we do? @kpsherva

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.

do you have example records? how is this field different? I can't answer without examples

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

if you check for ,CFG_WEBCOMMENT_RESTRICTION_DATAFIELD` in legacy code and see the various configurations for GENSBM_config_Faser_* it seems to be restriction for who can comment per resource type :) we have to ask tomorrow at the meeting (please note it down) if there is any need to restrict on who can comment on specific resource types - this going to be complicated, it would be better to avoid it

@kpsherva kpsherva Jul 16, 2026

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.

so basically this is the e-group which we should set as reviewers on the request for community inclusion, pinging @palkerecsenyi here for another opinion - is it EP Approval request or community inclusion request?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

So this is not a record restriction, it's comments right? should we still use this to the records access?

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.

reviewers of the request - there is already partial implementation from Fatimah done for 906 field which handles this, 506 in Fasers case seems to be the same but for e-groups

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm not hugely sure since I don't have much experience with the migration and the legacy data model. But I think community inclusion sounds more realistic. I'm not sure you could customise the EP Approval request reviewers on legacy?

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.

I'm not hugely sure since I don't have much experience with the migration and the legacy data model. But I think community inclusion sounds more realistic. I'm not sure you could customise the EP Approval request reviewers on legacy?

it is not that much about migration as about how to fit the data we have into the new data model and since you were working a lot on the EP workflow I thought you might have an understanding if this fits more into community inclusion or EP approval.
No it is not possible to customise easily the EP reviewers on legacy - the e-groups were hardcoded basically

@zubeydecivelek
zubeydecivelek force-pushed the faser-model branch 2 times, most recently from 37a778d to 06f70ac Compare July 15, 2026 12:24
Comment thread cds_migrator_kit/rdm/records/transform/xml_processing/rules/research.py Outdated
Comment thread cds_migrator_kit/rdm/records/transform/xml_processing/rules/research.py Outdated
Comment thread cds_migrator_kit/rdm/records/transform/transform.py
Comment thread cds_migrator_kit/rdm/records/transform/transform.py
Comment thread cds_migrator_kit/rdm/records/transform/xml_processing/rules/faser_publication.py Outdated
@zubeydecivelek
zubeydecivelek force-pushed the faser-model branch 2 times, most recently from d807e69 to e5a7147 Compare July 15, 2026 16:45
Comment thread cds_migrator_kit/rdm/records/transform/models/faser_publication.py Outdated
@kpsherva
kpsherva merged commit 45db44e into CERNDocumentServer:master Jul 16, 2026
2 checks passed
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: FASER

3 participants