Repository navigation
Fixes #39266 - Expose partition table snippet flag in API - #11276
Conversation
2b2cf45 to
ca94207
Compare
|
Updated the API update test to clear |
|
The CI failures are unrelated to the partition-table API change. Both JavaScript jobs hit the same time-dependent |
|
The JavaScript matrix is failing on the shared DateTimePicker midnight-boundary test, unrelated to this PR. I fixed that deterministic failure in #11280. The Ruby/integration failures are separate upstream test failures and are being tracked independently. |
|
The matrix failures are the unrelated DateTimePicker future-only midnight-boundary failure fixed by #11280 (Redmine #39792). The Ruby 3.3 integration failure is the shared HostgroupJSTest timeout fixed by #11291 (Redmine #39803). The remaining Katello failure is an unrelated VCR cassette mismatch in AlternateContentSourceRefreshTest; this PR only exposes the partition-table snippet field in the API. |
|
The independent Katello VCR failure is now resolved upstream by Katello/katello#11867, merged as a4a5ed2. That change fixed the new Pulp binding request-body defaults that broke body_json cassette matching, and its Ruby 3.0/3.3 Katello suites passed. The remaining Foreman-side failures are covered by #11280 and #11291. |
ca94207 to
46827e1
Compare
lzap
left a comment
There was a problem hiding this comment.
Great, thanks.
Can you also update the index action so the flag is exposed there?
|
I guess it won't hurt to add this to the hammer part as well: https://github.com/theforeman/hammer-cli-foreman/blob/master/lib/hammer_cli_foreman/partition_table.rb |
46827e1 to
54bee42
Compare
|
Thanks, |
|
The Hammer follow-up is ready in theforeman/hammer-cli-foreman#663. It exposes |
54bee42 to
84bff4b
Compare
|
The functional failure was in the new assertion: the index response wraps records in |
84bff4b to
5a107a0
Compare
Expose the snippet flag from partition table API index and show responses and cover the serializer output with a functional test.\n\nAssisted-By: Codex 6 Astra
5a107a0 to
0fae5f4
Compare
|
Updated: the snippet flag is now exposed from the shared main response used by the index action, with an index assertion in the controller test. The full CI is green. |
What
snippetflag in partition table show, create, and update responsesWhy
The API already accepts the
snippetparameter, but omits it from partition table responses. API clients therefore cannot read or confirm the stored state.Testing
ruby -c test/controllers/api/v2/ptables_controller_test.rbgit diff --checkAI assistance disclosure: