Files
Artem Goncharov 27f3f6cf51 feat: Extend view wiring to all migrated services
Adds extensions.rust-tui-view metadata for the 24 remaining
resources (block-storage, compute, dns, identity, image,
load-balancer, network) so the generator can own their
mode.rs/action.rs/app.rs marker regions, matching the wiring
gtema/openstack already hand-wrote in an earlier rollout.

Two fields needed for edge cases already present in that
hand-written code:
- filter_action_name/filter_type made optional: 13 resources have
  no Set<X>ListFilters action variant at all.
- view_key override added: block-storage's ViewKey literals use
  underscores ("block_storage.backup") and identity.group_user
  uses underscore+no-slash, diverging from their metadata resource
  keys ("block-storage.backup", "identity.group/user").

compute.server/instance_action/event is intentionally left
unmigrated: no metadata resource key backs it, it's a synthetic
show-view over compute.server/instance_action.

Fixes a real bug in _patch_marker_region found while wiring this
up: the region-id regex was unanchored, so replacing region
"identity.user" would match as a substring prefix inside
"identity.user/application_credential"'s markers and clobber it.
Anchored on end-of-line lookahead instead of `^`/`$`, since marker
lines are indented to match surrounding code and a literal
line-start anchor would never match them. Added regression tests
for both the prefix-collision and the indentation case.

zuul.d/rust.yaml: added rust-tui-view target to the other five
services now that they have opted-in resources.

Verified against a scratch gtema/openstack clone: generated output
builds clean, all 345 openstack_tui tests pass, rustfmt --check
clean, generation is idempotent, codegenerator's own 223 unit
tests pass, mypy stays at the pre-existing 573-error baseline.

Assisted-by: Claude Sonnet
Change-Id: I474609e5a09088dcb6f0b0990035b07bf848de10
Signed-off-by: Artem Goncharov <artem.goncharov@gmail.com>
2026-07-29 14:03:47 +02:00
..
2026-05-21 16:36:28 +02:00
2025-11-10 09:50:50 +01:00