-
Notifications
You must be signed in to change notification settings - Fork 27
#1194 Add domain suffix extraction and standard domains operation for domain validation #1439
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
cdee5ba
Add domain_suffix extraction and standard_domains operation to enable…
RakeshBobba03 646813b
Schema Update fix
RakeshBobba03 c5f29e2
Merge branch 'main' into 1194-Rule-blocked-CORERULES-903
RakeshBobba03 c1aa03b
Merge branch 'main' into 1194-Rule-blocked-CORERULES-903
RamilCDISC 4662d7e
Merge branch 'main' into 1194-Rule-blocked-CORERULES-903
gerrycampion bab199e
Merge branch 'main' into 1194-Rule-blocked-CORERULES-903
RakeshBobba03 18d93c1
Merge branch '1194-Rule-blocked-CORERULES-903' of https://github.com/…
RakeshBobba03 103c777
Add AP domain suffix extraction and standard_domains operation for CG…
RakeshBobba03 a0b81f0
Added default value handling for missing is_ap and ap_suffix columns …
RakeshBobba03 792cca7
Merge branch 'main' into 1194-Rule-blocked-CORERULES-903
RakeshBobba03 b882157
Refactor is_ap to check APID in first_record, fix AP supp detection, …
RakeshBobba03 cda1b1d
Fix test_rule_applies_to_domain by adding first_record with APID for …
RakeshBobba03 aae0996
Merge branch 'main' into 1194-Rule-blocked-CORERULES-903
RakeshBobba03 8aa328d
Remove redundant is_supp check and combine extract_metadata tests
RakeshBobba03 8202724
fixed complexity issue
RakeshBobba03 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gerrycampion marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| import pandas as pd | ||
|
|
||
| from cdisc_rules_engine.operations.base_operation import BaseOperation | ||
|
|
||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| from cdisc_rules_engine.operations.base_operation import BaseOperation | ||
|
|
||
|
|
||
| class StandardDomains(BaseOperation): | ||
| def _execute_operation(self): | ||
| standard_data: dict = self.library_metadata.standard_metadata | ||
| domains = standard_data.get("domains", set()) | ||
| if isinstance(domains, (set, list, tuple)): | ||
| return sorted(list(domains)) | ||
| elif domains is None: | ||
| return [] | ||
| raise TypeError( | ||
| f"Invalid type for 'domains' in standard_metadata: " | ||
| f"expected set, list, or tuple, got {type(domains).__name__}" | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.