Skip to content

NOISSUE - Remove MG related things in ATOM#11

Merged
dborovcanin merged 1 commit into
mainfrom
cleaning_1
Jun 18, 2026
Merged

NOISSUE - Remove MG related things in ATOM#11
dborovcanin merged 1 commit into
mainfrom
cleaning_1

Conversation

@arvindh123

Copy link
Copy Markdown
Contributor

What type of PR is this?

What does this do?

Which issue(s) does this PR fix/relate to?

Have you included tests for your changes?

Did you document any new/modified features?

Notes

Signed-off-by: Arvindh <arvindh91@gmail.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ad8c77aa05

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 765 to 770
('entity', 'entity:service'),
('entity', 'entity:workload'),
('entity', 'entity:application'),
('resource', 'resource:channel'),
('resource', 'resource:rule'),
('resource', 'resource:report'),
('resource', 'resource:alarm'),
('group', NULL)
) AS applicability(object_kind, object_type)
WHERE actions.name IN ('read', 'write', 'delete')

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Add a new migration instead of editing 001

Because startup runs sqlx::migrate::Migrator::run from src/main.rs, any database that has already applied migration version 1 will have the old checksum recorded in _sqlx_migrations; changing 001_initial.sql in place makes upgrades fail migration validation before the service starts. Put these seed-data removals in a new migrations/NNN_*.sql migration instead of rewriting the applied initial migration.

Useful? React with 👍 / 👎.

Comment on lines 765 to 770
('entity', 'entity:service'),
('entity', 'entity:workload'),
('entity', 'entity:application'),
('resource', 'resource:channel'),
('resource', 'resource:rule'),
('resource', 'resource:report'),
('resource', 'resource:alarm'),
('group', NULL)
) AS applicability(object_kind, object_type)
WHERE actions.name IN ('read', 'write', 'delete')

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve generic resource applicability

After removing the resource-specific rows here, there is no action_applicability entry for read/write/delete on resource at all. The resource listing path (resources query via authorized_resource_ids) only returns objects when the requested read action has a matching resource applicability row, so fresh databases will show zero resources and PDP checks for read on resources report the action as unknown even for admins. Replace the MG-specific types with a generic ('resource', NULL) entry for these actions if resources are still supported.

Useful? React with 👍 / 👎.

@dborovcanin dborovcanin merged commit b216568 into main Jun 18, 2026
3 checks passed
@dborovcanin dborovcanin deleted the cleaning_1 branch June 18, 2026 11:27
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