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

Remove the need to pass Put.expectedContent() #6438

Merged
merged 2 commits into from Mar 30, 2023

Conversation

snazy
Copy link
Member

@snazy snazy commented Mar 29, 2023

expectedContent was originally introduced for global-state, which has
been removed a while ago.

The field expectedContent is still present and used for REST API v1,
but excluded for REST API v2.

@snazy snazy requested a review from dimas-b March 29, 2023 18:48
@snazy snazy added the pr-integrations NesQuEIT (Iceberg, Spark, Flink, Presto) label Mar 29, 2023
@codecov
Copy link

codecov bot commented Mar 29, 2023

Codecov Report

Patch coverage has no change and project coverage change: +1.31 🎉

Comparison is base (7a836a3) 83.23% compared to head (7199cd5) 84.54%.

❗ Current head 7199cd5 differs from pull request most recent head 8423025. Consider uploading reports for the commit 8423025 to get more accurate results

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #6438      +/-   ##
============================================
+ Coverage     83.23%   84.54%   +1.31%     
  Complexity      537      537              
============================================
  Files           909      909              
  Lines         36033    36033              
  Branches       3220     3220              
============================================
+ Hits          29991    30465     +474     
+ Misses         4907     4399     -508     
- Partials       1135     1169      +34     
Flag Coverage Δ
java 84.58% <ø> (+1.38%) ⬆️
javascript 82.91% <ø> (ø)
python 83.96% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...c/main/java/org/projectnessie/model/Operation.java 100.00% <ø> (ø)
...rojectnessie/gc/iceberg/IcebergContentToFiles.java 94.62% <ø> (ø)
...rsioned/persist/tests/AbstractCommitScenarios.java 98.06% <ø> (ø)
.../main/java/org/projectnessie/versioned/Delete.java 100.00% <ø> (ø)
...src/main/java/org/projectnessie/versioned/Put.java 100.00% <ø> (ø)

... and 24 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@snazy snazy changed the title Update OpenAPI docs for Put + Delete Remove the need to pass Put.expectedContent() Mar 30, 2023
@snazy snazy requested a review from dimas-b March 30, 2023 08:06
@snazy snazy added the pr-native run native test label Mar 30, 2023
dimas-b
dimas-b previously approved these changes Mar 30, 2023
Copy link
Member

@dimas-b dimas-b left a comment

Choose a reason for hiding this comment

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

LGTM overall 👍 Minor comments, can be addressed in a follow-up PR.

.toBranch(branch))
.isInstanceOf(IllegalArgumentException.class)
.hasMessage("Key 't3' does not exist, but Put-operation has expectedValue");
.hasMessage("New value for new must not have a content iD");
Copy link
Member

Choose a reason for hiding this comment

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

nit: the message looks odd to me 🤷

Copy link
Member Author

Choose a reason for hiding this comment

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

Why? It's trying to create an IcebergTable with a content-ID, which is not allowed

Copy link
Member

Choose a reason for hiding this comment

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

Maybe quote the key in the message? This particular message is just hard to read :)

Copy link
Member

Choose a reason for hiding this comment

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

Also iD starts with a lower case ;)

Copy link
Member

Choose a reason for hiding this comment

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

`expectedContent` was originally introduced for global-state, which has
been removed a while ago.

The field `expectedContent` is still present and used for REST API v1,
but excluded for REST API v2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-integrations NesQuEIT (Iceberg, Spark, Flink, Presto) pr-native run native test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants