Skip to content

editoast: add check privileges for delete and put rolling stock endpoint#17359

Merged
younesschrifi merged 2 commits into
feature-branch/check-rolling-stock-privilegesfrom
yci/putRollingStock
Jul 3, 2026
Merged

editoast: add check privileges for delete and put rolling stock endpoint#17359
younesschrifi merged 2 commits into
feature-branch/check-rolling-stock-privilegesfrom
yci/putRollingStock

Conversation

@younesschrifi

@younesschrifi younesschrifi commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

This PR adds privileges checks for delete (CanRevoke) and put (CanWrite) rolling stock endpoints.

Caution

This PR targets a feature branch

@github-actions github-actions Bot added the area:editoast Work on Editoast Service label Jun 23, 2026
@younesschrifi younesschrifi force-pushed the yci/checkGetRollingStockId branch 3 times, most recently from bf067ac to 31e9c74 Compare June 24, 2026 07:54
Base automatically changed from yci/checkGetRollingStockId to feature-branch/check-rolling-stock-privileges June 24, 2026 08:20
@Sh099078 Sh099078 force-pushed the feature-branch/check-rolling-stock-privileges branch from 61083bb to 016cefe Compare June 24, 2026 15:41
@younesschrifi younesschrifi force-pushed the yci/putRollingStock branch 2 times, most recently from 597f825 to 35a05e9 Compare June 25, 2026 12:36
@younesschrifi younesschrifi changed the title add check privileges for delete and put rolling stock endpoint editoast: add check privileges for delete and put rolling stock endpoint Jun 25, 2026
@younesschrifi younesschrifi marked this pull request as ready for review June 25, 2026 13:24
@younesschrifi younesschrifi requested a review from a team as a code owner June 25, 2026 13:24

@Sh099078 Sh099078 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for the PR! Mostly LGTM. We skip the SystemAuthorizer sanity checks when authz is skipped, maybe that's not the behavior we want ?

Comment thread editoast/src/views/rolling_stock.rs
Comment thread editoast/src/views/rolling_stock.rs
Comment thread editoast/src/views/rolling_stock.rs Outdated
Comment thread editoast/src/views/rolling_stock.rs
Comment thread editoast/src/views/rolling_stock.rs
Comment thread editoast/src/views/rolling_stock.rs
@younesschrifi younesschrifi force-pushed the feature-branch/check-rolling-stock-privileges branch from 9cda363 to af93581 Compare June 26, 2026 14:04
@younesschrifi younesschrifi force-pushed the yci/putRollingStock branch 3 times, most recently from 8c825bc to b35e9b8 Compare June 28, 2026 18:23
@Sh099078 Sh099078 force-pushed the feature-branch/check-rolling-stock-privileges branch from af93581 to 49c63ff Compare June 29, 2026 14:35
@younesschrifi younesschrifi force-pushed the feature-branch/check-rolling-stock-privileges branch from 49c63ff to 25b1202 Compare July 1, 2026 07:53
@younesschrifi younesschrifi requested a review from Sh099078 July 2, 2026 07:35
@younesschrifi younesschrifi force-pushed the yci/putRollingStock branch from b35e9b8 to 15da9ff Compare July 2, 2026 12:44

@leovalais leovalais left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, for the exhaustive test suite as well! :)

Comment thread editoast/src/views/rolling_stock.rs Outdated
Comment thread editoast/src/views/rolling_stock.rs Outdated
@younesschrifi younesschrifi force-pushed the yci/putRollingStock branch from 15da9ff to 2934a60 Compare July 3, 2026 12:33
@younesschrifi younesschrifi force-pushed the feature-branch/check-rolling-stock-privileges branch from 25b1202 to c6e470e Compare July 3, 2026 12:33
@younesschrifi younesschrifi force-pushed the yci/putRollingStock branch 2 times, most recently from 342566f to 5d65ee4 Compare July 3, 2026 12:45
Signed-off-by: Youness CHRIFI ALAOUI <youness.chrifi@gmail.com>
Signed-off-by: Youness CHRIFI ALAOUI <youness.chrifi@gmail.com>
@younesschrifi younesschrifi force-pushed the yci/putRollingStock branch from 5d65ee4 to 300f9bc Compare July 3, 2026 13:26
@younesschrifi younesschrifi merged commit 61bd932 into feature-branch/check-rolling-stock-privileges Jul 3, 2026
31 checks passed
@younesschrifi younesschrifi deleted the yci/putRollingStock branch July 3, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:editoast Work on Editoast Service

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants