-
Notifications
You must be signed in to change notification settings - Fork 13
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
notifications funcitonality added #GCPActive #62
Conversation
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.
Considering the difficulties we currently have because LocalTest isn't in sync with all the repositories it copies code from, I think this is a great opportunity to organise the code a little differently.
My suggestion would be something like
.src/
Altinn/
Notifications/
- All code copied from Notifications (except `.csproj`, ...?)
- Any deliberate changes is clearly marked with a comment
(Ideally no changes with but use `#if LOCALTEST` to maintain both versions in the same code instead)
Services/
Notifications/
LocaltestOrderRepository.cs
We can definetly group all code in a single folder I'm not sure I want to introduce #if LOCALTEST in our original code base. I believe it complicates the code and introduces a potential risk for bugs / security issues. The difference is mainly in the controllers and repository files, whereas the services with the actual business logic are copied directly without change. |
I'm not sure about the Most of the code that has been copied into app-localtest has diverged quite a lot from the code that it tries to represent a local mock for. In authentication I found a bug that caused a |
The copy operations seems to have changed the namespace to |
Authentication and authorization might be the biggest challenges with localtest I think, but those are complex areas in the general platform component as well. We would need to agree on wether or not localtest should only cover the basics and be a mock with minimum required functionality for an app to run locally or if we actually want to be a copy of the platform component. The latter would requrire quite a lot of extra work, but with potential limited reward is my assumption. All code moved into a designated notifications folder now ;) |
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.
Looks good!
Description
Duplicated functionality for generating a email notification order.
Order is persisted to disk in a sub directory to
LocalTestingStorageBasePath
full notification order is persisted as a json document.
Altinn/altinn-notifications#239