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

[ODS-6111] Update EdFi.Security.DataAccess to .Net 8 #929

Merged
merged 9 commits into from
Jan 29, 2024
Merged

Conversation

JBrenesSimpat
Copy link
Contributor

No description provided.

Copy link
Contributor

@stephenfuqua stephenfuqua left a comment

Choose a reason for hiding this comment

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

With this ODS/API 6.2 update to .NET 8, please keep in mind that we do not want to copy any changes from main except for those changes that are specifically related to .NET 8.

In some circumstances we can also apply small C# improvements so long as we are 100% sure they do not change the way the code works.

.github/workflows/edFi.security.dataaccess pullrequest.yml Outdated Show resolved Hide resolved
.github/workflows/edFi.security.dataaccess manual.yml Outdated Show resolved Hide resolved
.github/workflows/edFi.security.dataaccess pullrequest.yml Outdated Show resolved Hide resolved
Copy link
Contributor

Choose a reason for hiding this comment

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

Please restore this file. It is still used in ODS/API 6.x code (see EdFi.Ods.Api.Container.Modules.SecurityRepositoryModule). In ODS/API 7.x there were some recent changes to improve or remove some of the caching, which probably explains why this file would have been removed from the main branch.

Copy link
Contributor

Choose a reason for hiding this comment

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

@JBrenesSimpat the tests for CachedSecurityRepository use StubSecurityContext, which no longer compiles cleanly since they removed IDbSet from Entity Framework Core 😠 .

There may be some other work around, but in this case we need to simply stop trying to unit test the repository. It would be ideal if we had some integration tests that access the database.

The unit tests are kind of interesting but there is not a lot of business logic to test here. We should delete the unit test file and StubSecurityContext.

Copy link
Contributor

Choose a reason for hiding this comment

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

@JBrenesSimpat the tests for CachedSecurityRepository use StubSecurityContext, which no longer compiles cleanly since they removed IDbSet from Entity Framework Core 😠 .

There may be some other work around, but in this case we need to simply stop trying to unit test the repository. It would be ideal if we had some integration tests that access the database.

The unit tests are kind of interesting but there is not a lot of business logic to test here. We should delete the unit test file and StubSecurityContext.

@stephenfuqua stephenfuqua merged commit 0562b5d into main-6x Jan 29, 2024
2 checks passed
@stephenfuqua stephenfuqua deleted the ODS-6111 branch January 29, 2024 16:24
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