-
Notifications
You must be signed in to change notification settings - Fork 7
Issue 52824: Don't mutate domains from the cache #6690
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
25 commits
Select commit
Hold shift + click to select a range
e289726
Issue 52824: remove domain from cache if it's being updated
labkey-susanh 0d89e53
Merge remote-tracking branch 'origin/develop' into fb_getDomainForUpdate
labkey-susanh fd3dea8
Merge remote-tracking branch 'origin/develop' into fb_getDomainForUpdate
labkey-susanh e96be00
fewer p's
labkey-susanh e9cc42f
If not for update, retrieve directly from the database.
labkey-susanh a5e4c3d
Mark as readOnly if from the cache.
labkey-susanh 8ef82c9
Get domain for update when ensuring for UsersDomainKind
labkey-susanh b2044c5
Merge remote-tracking branch 'origin/develop' into fb_getDomainForUpdate
labkey-susanh d456974
More places to mark domains as for update or not
labkey-susanh afdab48
Get the mutable domain at the right time
labkey-susanh 924a644
Merge from develop
labkey-susanh 48678b5
Add forUpdate parameter to more methods
labkey-susanh 68b1618
Add forUpdate parameter to more methods that are getting domains
labkey-susanh 00faafe
get for update
labkey-susanh d3d31b3
More forUpdate parameters and make methods for data classes and sampl…
labkey-susanh 1b03d59
get mutable domain during import
labkey-susanh 4d41906
isForUpdate -> isMutable
labkey-susanh 3519d58
Still more forUpdate parameters
labkey-susanh 210a8ea
Merge remote-tracking branch 'origin/develop' into fb_getDomainForUpdate
labkey-susanh a6aca25
Use the forUpdate parameter
labkey-susanh 17f1fa0
Merge remote-tracking branch 'origin/develop' into fb_getDomainForUpdate
labkey-susanh 9342e55
Merge remote-tracking branch 'origin/develop' into fb_getDomainForUpdate
labkey-susanh bb2415a
Comments
labkey-susanh d4c11b4
Better handling of forUpdate and stashed objects
labkey-susanh 2259fce
Merge remote-tracking branch 'origin/develop' into fb_getDomainForUpdate
labkey-susanh 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
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
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 |
|---|---|---|
|
|
@@ -857,6 +857,15 @@ public Domain getDomain() | |
| return null; | ||
| } | ||
|
|
||
| @Nullable | ||
| @Override | ||
| public Domain getDomain(boolean forUpdate) | ||
| { | ||
| if (forUpdate) | ||
| throw new UnsupportedOperationException("Cannot get domain for update."); | ||
| return getDomain(); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe this should throw
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done. |
||
| } | ||
|
|
||
| @Nullable | ||
| @Override | ||
| public DomainKind getDomainKind() | ||
|
|
||
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
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.
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.
Worth a comment to say the default
forUpdateis false?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.
Done