-
Notifications
You must be signed in to change notification settings - Fork 801
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
Added deprecated domain check to the taskvalidator #5580
Added deprecated domain check to the taskvalidator #5580
Conversation
{"DomainFetchSuccess", "domain-id-success", "run-id-success"}, | ||
{"DomainFetchFailure", "domain-id-failure", "run-id-failure"}, |
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.
how are these 2 cases different? validations expect no error below
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.
The main code currently doesn't do anything except for logging the case. The test is for a supporting domain id retrieval check as there's not much to test really. Will be modifying it with something more substantial in the upcoming in-progress PR.
const ( | ||
DeprecatedDomainStatus = 1 | ||
DeletedDomainStatus = 2 | ||
) |
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.
these are still copies of original enum. see my prev comment #5580 (comment)
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.
@Shaddoll what is the pattern we follow for defining a corresponding type in common that is originally defined in persistence package only?
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.
I tried importing the original enum but it didn't work out so ended up defining these in a common file.
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.
they're visible / common/persistence
is definitely the place to get them from when looking at persistence-related data. should work the same since they're consts (i.e. same implicit casting whether it's here or persistence folder)
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.
@agautam478 why didn't it work when imported from persistence? cyclic dependency?
We need to figure out a solution than re-defining these because there's no mechanism ensuring these don't go out of sync
What changed?
Why?
How did you test it?
Added a partner unit test.
Potential risks
NA
Release notes
NA
Documentation Changes
NA