Skip to content
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

[3/X] DXCDT-461: Remove permissions field from role resource #714

Merged
merged 3 commits into from
Jul 13, 2023

Conversation

sergiught
Copy link
Contributor

@sergiught sergiught commented Jul 13, 2023

🔧 Changes

Removes the deprecated permissions field from the role resource. This will only be available on the data source from now on, this is part of a push to avoid edge cases where these attributes are outdated due to the 1:1 and 1:many relationships that could perform changes on a role's permissions.

📚 References

🔬 Testing

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@codecov-commenter
Copy link

Codecov Report

Merging #714 (d67669a) into v1 (d67669a) will not change coverage.
The diff coverage is n/a.

❗ Current head d67669a differs from pull request most recent head 5924f29. Consider uploading reports for the commit 5924f29 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##               v1     #714   +/-   ##
=======================================
  Coverage   87.51%   87.51%           
=======================================
  Files          85       85           
  Lines       13357    13357           
=======================================
  Hits        11689    11689           
  Misses       1262     1262           
  Partials      406      406           

@sergiught sergiught marked this pull request as ready for review July 13, 2023 10:38
@sergiught sergiught requested a review from a team as a code owner July 13, 2023 10:38
) diag.Diagnostics {
role, err := api.Role.Read(ctx, roleID)
if err != nil {
return diag.FromErr(err)
Copy link
Contributor

Choose a reason for hiding this comment

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

No need to handle the 404 here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

404s need to get handled only for resources, see #604

@sergiught sergiught merged commit cb94261 into v1 Jul 13, 2023
@sergiught sergiught deleted the patch/DXCDT-461-role-perms branch July 13, 2023 16:38
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.

4 participants