Skip to content

refactor(settings): settings client uses permission handling from core lib #1873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

d0weinberger
Copy link
Contributor

@d0weinberger d0weinberger commented May 5, 2025

Why this PR?

The code for interacting with the settings object permission API has moved to the core library, such that it can be shared also with the Terraform provider.

What has changed?

The main change is in settings_client.go, where, instead of calling the permission API directly, the permission client of the core library is used.

How does it do it?

When creating a new settings client, the nested rest client is also used to create the core lib permission client.

How is it tested?

No new functionality was added. Code was moved and the existing tests still pass.
Actually, the existing tests have been improved to be more specific.

How does it affect users?

NO user impact.

@d0weinberger d0weinberger force-pushed the refactor/settings-client-uses-core-lib-permission-handling branch 2 times, most recently from dfd4473 to 8ef2bb9 Compare May 8, 2025 17:03
@d0weinberger d0weinberger force-pushed the refactor/settings-client-uses-core-lib-permission-handling branch 3 times, most recently from 8198fad to 070b4c2 Compare May 19, 2025 11:17
@d0weinberger d0weinberger marked this pull request as ready for review May 19, 2025 11:22
@d0weinberger d0weinberger requested a review from a team as a code owner May 19, 2025 11:22
@d0weinberger d0weinberger force-pushed the refactor/settings-client-uses-core-lib-permission-handling branch from 070b4c2 to 3b2231d Compare May 19, 2025 11:30
@arthurpitman arthurpitman added the run-e2e-test Manually trigger the E2E tests for reviewed PRs label May 19, 2025
Copy link

E2E Test Results

    3 files  ±0    263 suites  ±0   18m 53s ⏱️ - 1m 38s
2 174 tests ±0  2 172 ✅ ±0  2 💤 ±0  0 ❌ ±0 
2 405 runs  ±0  2 403 ✅ ±0  2 💤 ±0  0 ❌ ±0 

Results for commit 3b2231d. ± Comparison against base commit 466c57c.

…e lib

When creating a new settings client, the nested rest client is also used to create the core lib permission client.
@d0weinberger d0weinberger force-pushed the refactor/settings-client-uses-core-lib-permission-handling branch from 3b2231d to ab405e7 Compare May 19, 2025 14:40
@d0weinberger d0weinberger merged commit 11150c7 into main May 19, 2025
10 checks passed
@d0weinberger d0weinberger deleted the refactor/settings-client-uses-core-lib-permission-handling branch May 19, 2025 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-e2e-test Manually trigger the E2E tests for reviewed PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants