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

A few fixes for client users #49

Merged
merged 2 commits into from
Jan 12, 2024
Merged

A few fixes for client users #49

merged 2 commits into from
Jan 12, 2024

Conversation

Fosol
Copy link
Contributor

@Fosol Fosol commented Jan 12, 2024

Fixed issue where no organizations would be returned for client user with tenant. Also removed caching as it was causing issues testing different accounts.

@Fosol Fosol added the bug Something isn't working label Jan 12, 2024
@Fosol Fosol self-assigned this Jan 12, 2024
@@ -64,6 +63,7 @@ public class OperatingSystemItemController : ControllerBase
[Produces(MediaTypeNames.Application.Json)]
[ProducesResponseType(typeof(IEnumerable<OperatingSystemItemModel>), (int)HttpStatusCode.OK)]
[SwaggerOperation(Tags = new[] { "Operating System Item" })]
[ResponseCache(VaryByQueryKeys = new[] { "*" }, Location = ResponseCacheLocation.Client, Duration = 60)]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only 60 second caching

{
var userOrganizationQuery = from uo in this.Context.UserOrganizations
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed issue where a user is only linked to a tenant, but not to an organization

@Fosol Fosol merged commit 4129d4e into bcgov:main Jan 12, 2024
1 check passed
@Fosol Fosol deleted the 203 branch January 12, 2024 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant