-
Notifications
You must be signed in to change notification settings - Fork 3
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
Introduce user dashboard with 3 tabs #72
Conversation
This is the model of the actual "habilitation", which is a snapshot of the authorization request at the moment of validation. Will be implemented in the following commit
615b0c4
to
9345e25
Compare
Harden events factory and query object to keep it human readable
Do not overwrite contact attributes if specified
* Add more authorization requests to organization (not main user) * Add main user as contact on one of authorization request
ce83893
to
b0f46bb
Compare
Have to change request specs, we have 2 redirects now Closes https://linear.app/pole-api/issue/API-2120
Because of foreign keys we have side effects issues on CI with unclean data. No need to check this kind of complexity in tests, just wipe everything
b0f46bb
to
2fc4676
Compare
* Within organization * With mentions
No need to show multiple steps, they can't do anything anyway
Decorator does not play nice with `class` instance method (it does not forward), we have to define an instance methods to access these attributes. Moreover, `model_name` renders the parent class instead of child, make it global in main decorator to avoid this error.
2fc4676
to
1b5e6b0
Compare
ça se lit commit par commit. ça a été un plus gros morceau que prévu 😅 |
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.
Very nice
Quelques questions pour moi
def perform | ||
AuthorizationRequest.where("EXISTS ( | ||
select 1 | ||
from each(authorization_requests.data) as kv |
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.
kv
?
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.
key_value
, c'est un objet ayant pour clé key
et value
. C'est peu important dans le contexte imo.
class Scope < Scope | ||
def resolve | ||
scope.where(organization: current_organization) | ||
end | ||
end |
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.
🤔
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.
C'est comme class << self
ici ?
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.
C'est la syntax Pundit, et ici le premier Scope
est celui du namespace AuthorizationRequestPolicy
, et le second celui de la classe mère.
@Isalafont je merge mais je t'invite à lire le code tout de même. |
Closes https://linear.app/pole-api/issue/API-2120/dashboard-demandeur-ouet-contact#comment-0d2692b1