-
Notifications
You must be signed in to change notification settings - Fork 36
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
Refactor business rules #2965
Refactor business rules #2965
Conversation
specifyweb/frontend/js_src/lib/components/DataModel/businessRules.ts
Outdated
Show resolved
Hide resolved
Fixes #2260 Adds the following Uniqueness Rules: Of the form: Table.field -> uniqueIn CollectingEvent.uniqueidentifier -> discipline CollectionObject.uniqueidentifier -> collection DisposalAgent.role/agent -> disposal Extractor.agent -> dnasequence Fundingagent.agentt -> collectingtrip Locality.uniqueidentifier -> discipline LocalityCitation.referencework -> locality PcrPerson.agent -> dnasequence Specifyuser.name -> (DATABASE)
Also, fix a bug where uniqueness rules containing more than one field were not registering the `otherField`
specifyweb/frontend/js_src/lib/components/DataModel/interactionBusinessRules.ts
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maxpatiiuk
If you have a moment, could you take a look at this error? I can not seem to resolve it.
The intended behavior makes sense to me conceptually, but there could easily be some Typescript syntax I am overlooking. Thank you in advance!
specifyweb/frontend/js_src/lib/components/DataModel/businessRules.ts
Outdated
Show resolved
Hide resolved
specifyweb/frontend/js_src/lib/components/DataModel/businessRuleDefs.ts
Outdated
Show resolved
Hide resolved
specifyweb/frontend/js_src/lib/components/DataModel/businessRuleDefs.ts
Outdated
Show resolved
Hide resolved
specifyweb/frontend/js_src/lib/components/DataModel/businessRuleDefs.ts
Outdated
Show resolved
Hide resolved
specifyweb/frontend/js_src/lib/components/DataModel/businessRuleDefs.ts
Outdated
Show resolved
Hide resolved
specifyweb/frontend/js_src/lib/components/DataModel/businessRuleDefs.ts
Outdated
Show resolved
Hide resolved
specifyweb/frontend/js_src/lib/components/DataModel/businessRuleDefs.ts
Outdated
Show resolved
Hide resolved
specifyweb/frontend/js_src/lib/components/DataModel/businessRuleDefs.ts
Outdated
Show resolved
Hide resolved
specifyweb/frontend/js_src/lib/components/DataModel/businessRules.ts
Outdated
Show resolved
Hide resolved
specifyweb/frontend/js_src/lib/components/DataModel/businessRules.ts
Outdated
Show resolved
Hide resolved
specifyweb/frontend/js_src/lib/components/DataModel/specifyModel.ts
Outdated
Show resolved
Hide resolved
I really like the changes you are doing! Keep it going |
The change here was necessitated by the changes in aa323a5
Rather than using mutation
This pull request has been mentioned on Specify Community Forum. There might be relevant details there: |
This is primarily to test the scope of the failing tests. The calls will most likely ned to be added in lib/tests/ajax/static if declaring the overrides in this way does not work
They became redundant because of fc00e2b
Addresses #2924
Priorites