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

feat: handle different period types of workflow and data sets (DHIS2-11288) #30

Merged
merged 10 commits into from
Jul 27, 2021

Conversation

Mohammer5
Copy link
Contributor

@Mohammer5 Mohammer5 commented Jul 21, 2021

Closes DHIS2-11288
(link)

I've added some refactoring to this PR:

  • I've moved the selection context to the root level
    • That way I don't have to resolve the parameters every time I need the selection but have access to the selection itself directly
  • I've made the app context default values and provided values explicit so it's clear what to expect
  • The loading spinner (workflow provider) is now being displayed when loading || !called (when params exist) is true (as !called basically means it's about to load)


return {
ds: dataSetId,
pe: periodIds.join(','),
Copy link
Contributor

Choose a reason for hiding this comment

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

.join shouldn't be needed here as the runtime does it for us here

@Mohammer5 Mohammer5 force-pushed the DHIS2-11288-Handle-diff-periodType-of-wf-and-ds branch from 7784dbf to 86716b5 Compare July 23, 2021 12:58
@Mohammer5 Mohammer5 marked this pull request as ready for review July 27, 2021 08:15
@Mohammer5 Mohammer5 requested a review from mediremi July 27, 2021 08:15
@Mohammer5 Mohammer5 merged commit ae990e1 into master Jul 27, 2021
@Mohammer5 Mohammer5 deleted the DHIS2-11288-Handle-diff-periodType-of-wf-and-ds branch July 27, 2021 11:05
dhis2-bot added a commit that referenced this pull request Jul 27, 2021
# [1.9.0](v1.8.1...v1.9.0) (2021-07-27)

### Features

* handle different period types of workflow and data sets (DHIS2-11288) ([#30](#30)) ([ae990e1](ae990e1))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 1.9.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants