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

Feature: filenameExists Validation Rule #1456

Open
wants to merge 44 commits into
base: develop
Choose a base branch
from

Conversation

GiaJordan
Copy link
Contributor

@GiaJordan GiaJordan commented Jul 10, 2024

This PR introduces the filenameExists metadata validation rule that checks for parity between the file paths in a metadata manifest (and the associated entityIds) and the file paths in the master file view on Synapse.

Another associated change is that schematic's handling of paths for all files on synapse has been changed; paths now include the project name at the beginning of the path to match the format of paths in synapse file views.

@GiaJordan GiaJordan marked this pull request as draft July 10, 2024 22:22
@GiaJordan GiaJordan force-pushed the develop-filename-rule-FDS-1720 branch from f69406c to 4c9551d Compare July 22, 2024 20:59
@GiaJordan GiaJordan marked this pull request as ready for review July 22, 2024 21:02
@GiaJordan GiaJordan changed the title Develop filename rule fds 1720 Feature: filenameExists Validation Rule Jul 24, 2024
@GiaJordan GiaJordan force-pushed the develop-filename-rule-FDS-1720 branch from 3cce7de to 3451b65 Compare July 26, 2024 18:06
Copy link

sonarcloud bot commented Jul 26, 2024

where_clauses: Optional[list] = None,
):
# if the ValidateAttribute object already has a SynapseStorage object, just requery the fileview, if not then login
if hasattr(self, "synStore"):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Under what situations that the if statement here: if hasattr(self, "synStore") would get triggered?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If the ValidateAttribute object already has a synStore attribute because it was used during the validation of another column

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.

None yet

3 participants