Skip to content

refactor(tui): Forward identity to gen ResourceBehaviour - #1976

Merged
gtema merged 1 commit into
mainfrom
tui-thin-identity
Sep 3, 2026
Merged

refactor(tui): Forward identity to gen ResourceBehaviour#1976
gtema merged 1 commit into
mainfrom
tui-thin-identity

Conversation

@gtema

@gtema gtema commented Sep 3, 2026

Copy link
Copy Markdown
Owner

PR #1975 added the generated mechanical tier for the identity resources.
Thin the hand-written ResourceBehaviour impls to one-line forwarders
onto super::generated::<r>::Generated::<method>, keeping only custom
logic:

  • users.rs: action_to_request enable/disable toggle,
    confirm_request delete prompt, filter_carry_action drilldown into
    application credentials, handle_mutation_response, and the two
    TryFrom<&serde_json::Value> builders.
  • projects.rs: filter_carry_action translating SwitchToProject
    into a CloudChangeScope.
  • groups.rs: confirm_request delete prompt, filter_carry_action
    drilldown into group users, and its two TryFrom builders.

group_users.rs and application_credentials.rs are nested resources
the generator does not emit and are left untouched. Test title
expectations move to the generator's prefix-stripped form ("Users",
"Projects", "Groups").

Assisted-By: Claude Sonnet 5 noreply@anthropic.com
Signed-off-by: Artem Goncharov artem.goncharov@gmail.com

PR #1975 added the generated mechanical tier for the identity resources.
Thin the hand-written `ResourceBehaviour` impls to one-line forwarders
onto `super::generated::<r>::Generated::<method>`, keeping only custom
logic:

- `users.rs`: `action_to_request` enable/disable toggle,
  `confirm_request` delete prompt, `filter_carry_action` drilldown into
  application credentials, `handle_mutation_response`, and the two
  `TryFrom<&serde_json::Value>` builders.
- `projects.rs`: `filter_carry_action` translating `SwitchToProject`
  into a `CloudChangeScope`.
- `groups.rs`: `confirm_request` delete prompt, `filter_carry_action`
  drilldown into group users, and its two `TryFrom` builders.

`group_users.rs` and `application_credentials.rs` are nested resources
the generator does not emit and are left untouched. Test title
expectations move to the generator's prefix-stripped form ("Users",
"Projects", "Groups").

Assisted-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: Artem Goncharov <artem.goncharov@gmail.com>
@gtema
gtema force-pushed the tui-thin-identity branch from c6799bf to db8b0b3 Compare September 3, 2026 16:14
@gtema
gtema enabled auto-merge (squash) September 3, 2026 16:15
@gtema
gtema merged commit 0cea535 into main Sep 3, 2026
14 checks passed
@gtema
gtema deleted the tui-thin-identity branch September 3, 2026 16:16
@gtema-release-plz gtema-release-plz Bot mentioned this pull request Sep 3, 2026
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.

1 participant