-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: allow manually adding changes summary to a version of an app #752
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #752 +/- ##
=========================================
Coverage ? 65.83%
=========================================
Files ? 29
Lines ? 559
Branches ? 131
=========================================
Hits ? 368
Misses ? 178
Partials ? 13 ☔ View full report in Codecov by Sentry. |
@@ -32,21 +32,26 @@ const InitializeAuth = ({ children }) => { | |||
}, [getAccessTokenSilently]) | |||
|
|||
useEffect(() => { | |||
if (!isLoading && isAuthenticated && user) { | |||
const getUserInfo = async () => { |
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 can't remember anymore if this is the right way of doing a side effect in Redux without something like redux-thunk - but I don't see redux-thunk installed and this seems to work
version: values, | ||
}) | ||
let message = `Successfully created app version ${values.version}` | ||
if (editMode) { |
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.
is it worth it keeping the same component for edit and add? I wasn't sure (but I should at least update the file name if this doesn't look too messy for people)
@@ -91,6 +91,8 @@ module.exports = { | |||
throw Boom.notFound('No apps found') | |||
} | |||
|
|||
return v1FormattedArray[0] | |||
const result = v1FormattedArray[0] | |||
result.userCanEditApp = isDeveloper |
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.
this is the easiest way I found to be able to decide if a user should be able to edit, without making an extra call
237e1ee
to
71cf1ea
Compare
This adds the ability to manually edit/add change summary, to show in addition to the change log summary for the CHANGELOG.md.
implements https://dhis2.atlassian.net/browse/HUB-167
manual-changes-create.webm
manual-changes-edit.webm