Skip to content

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

Open
zubeydecivelek wants to merge 1 commit into
CERNDocumentServer:masterfrom
zubeydecivelek:faser-model
Open

add(faser): new models and transformation rules#525
zubeydecivelek wants to merge 1 commit 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
# -*- coding: utf-8 -*-
#
# Copyright (C) 2026 CERN.
#

@kpsherva kpsherva Jul 9, 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.

we should not have to add another set of rules for faser, but adapt the one for research - you are duplicating a lot of rules here

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.

I'm only duplicating 690 and 980

model.over("related_ids", "(^773__)", override=True)(faser_publication_related_ids)


@model.over("status", "(^591__)", override=True)

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.

same comment as below

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 we'll ignore this status?

"""Translation model for FASER publication records."""

__query__ = (
"693__:FASER -591__:Draft AND ("

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.

we don't need two separate models for draft and record of faser if we remove -591__:Draft from the query, the model with match all drafts and published records

Comment on lines +21 to +23
"980__.a:NOTE OR "
"(980__.a:CONFERENCEPAPER OR 980__.a:SLIDE OR 980__.a:CONFERENCENOTE) OR "
"((980__.a:ARTICLE OR 980__.a:PREPRINT) -980__.a:CONFERENCEPAPER)"

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.

is this part of the query needed? Isn't it enough to match by 693__:FASER? we want to move all faser documents, don't we?

"EligibilityHRCirc": ["eligibility-retr-actual", "hr-web-gacepa"],
"CERNPeopleEligibility": ["cern-personnel", "eligibility-retr-actual"],
"FAPDepRestrFile": ["fap-dep"],
"EP Restricted Draft": ["faser-all"],

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.

this is not entirely true, it will be only for Faser, otherwise if there is another collection later which has EP Restricted Draft on the file status, then you will grant access on those other files to faser-all e-group

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.

grid_value = None
for aff in _affiliations:
if aff:
if aff.startswith("GRID:"):

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 we simply assign the grid if grid is present? I don't think we got the answers which would help us decide otherwise

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.

you mean adding like this?

affiliations.append(aff)

in this case it might be confusing for users?
values are like this: GRID:grid.6451.6

@zubeydecivelek zubeydecivelek marked this pull request as ready for review July 9, 2026 14:48
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

2 participants