-
Notifications
You must be signed in to change notification settings - Fork 0
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
Allow review from unauthorized users #15
Allow review from unauthorized users #15
Conversation
Test Results3 files 3 suites 16s ⏱️ Results for commit 828be09. ♻️ This comment has been updated with latest results. |
backend/src/LeanCode.AppRating/DataAccess/ModelBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
backend/src/LeanCode.AppRating/DataAccess/ModelBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
b6feb42
to
5467faa
Compare
@@ -4,5 +4,5 @@ namespace LeanCode.AppRating; | |||
|
|||
public interface IUserIdExtractor<TUserId> | |||
{ | |||
public TUserId Extract(HttpContext httpContext); | |||
public bool TryExtract(HttpContext httpContext, out TUserId? userId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would suggest having both, one that throws, and one that doesn't. The one can be implemented (w/ default interface implementation) using the other.
@@ -1,10 +1,16 @@ | |||
<Project Sdk="Microsoft.NET.Sdk"> | |||
<PropertyGroup> | |||
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I needed that so that I could check the type internals, but I guess we don't need that in repository
There is a new requirement, that forces us to reconfigure most of the storage part of the rating feature. I'm not sure how we want to approach the data migration to the new backend version (do we care at all?).
Decisions made on the fly:
struct
s).Tests for unauthorized user are missing...