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

Add a MetadataUpdate class in preparation for batch object updates #697

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

MrCreosote
Copy link
Member

So we can pass a Map<ObjectIDResolvedWS, MetadataUpdate> to the method

So we can pass a Map<ObjectIDResolvedWS, MetadataUpdate> to the method
@codecov
Copy link

codecov bot commented Oct 16, 2023

Codecov Report

Merging #697 (20415a8) into develop (6eba5e7) will increase coverage by 0.01%.
Report is 7 commits behind head on develop.
The diff coverage is 100.00%.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop     #697      +/-   ##
=============================================
+ Coverage      87.44%   87.45%   +0.01%     
- Complexity      5202     5215      +13     
=============================================
  Files            223      224       +1     
  Lines          17304    17320      +16     
  Branches        2550     2553       +3     
=============================================
+ Hits           15131    15148      +17     
  Misses          1706     1706              
+ Partials         467      466       -1     

final ResolvedWorkspaceID wsid = new PermissionsCheckerFactory(db, user)
.getWorkspaceChecker(wsi, Permission.ADMIN)
.withOperation("alter metadata for").check();
if (keysToRemove == null && (meta == null || meta.isEmpty())) {
if (!meta.hasUpdate()) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

much nicer!

@MrCreosote MrCreosote merged commit a092eb2 into kbase:develop Oct 17, 2023
10 checks passed
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.

2 participants