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

fix: DHIS2-10711 duplicated calls on search page #1572

Merged
merged 8 commits into from
Apr 8, 2021

Conversation

paschalidi
Copy link
Contributor

@paschalidi paschalidi commented Mar 19, 2021

https://jira.dhis2.org/browse/DHIS2-10711

What is this PR doing?

How this workes is that the page will be immediately rendered and fetch the relevant data. But then the page would go loading again since we based the readiness of the page on the lockedSelectorLoads.

When I was developing this I didnt have a clear separation in my mind, for the locked selector variable called lockedSelectorLoads. However, it might make sense that this value is only responsible for the loading state of the locked selector and not of whole pages as I did here.

@paschalidi paschalidi requested a review from JoakimSM March 19, 2021 11:05
@paschalidi paschalidi marked this pull request as ready for review March 19, 2021 12:46
@lgtm-com
Copy link

lgtm-com bot commented Mar 19, 2021

This pull request introduces 1 alert when merging 45d1c7d into ae5303c - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

@paschalidi paschalidi changed the title fix: DHIS2-10711duplicates fix: DHIS2-10711 duplicated calls on search page Mar 24, 2021
Copy link
Member

@JoakimSM JoakimSM left a comment

Choose a reason for hiding this comment

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

good work, I can verify it's working :)

It would be great if you could also have a look at the relationship-part, same problem there it seems.

@paschalidi
Copy link
Contributor Author

This must fix the error on the relationship part. The problem there was a bit different. Some time ago on a refactoring, I made it that the data entry itself is responsible for its initialisation. Apparently I forgot to change that bit in the relationship part which resulted in initialising the form twice.

@paschalidi paschalidi requested a review from JoakimSM March 30, 2021 09:56
@dhis2 dhis2 deleted a comment from lgtm-com bot Mar 30, 2021
Copy link
Member

@JoakimSM JoakimSM left a comment

Choose a reason for hiding this comment

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

Perfect!

@paschalidi paschalidi merged commit 1360124 into v36 Apr 8, 2021
@paschalidi paschalidi deleted the cp/DHIS2-10711-double-calls branch April 8, 2021 10:25
dhis2-bot added a commit that referenced this pull request Apr 23, 2021
# [1.16.0](v1.15.1...v1.16.0) (2021-04-23)

### Bug Fixes

* **translations:** [DHIS2-8998] translate strings ([b92350c](b92350c))
* correct app name and title specified in d2.config.js ([#1599](#1599)) ([f14cf01](f14cf01))
* DHIS2-10711 duplicated calls on search page ([#1572](#1572)) ([1360124](1360124))
* DHIS2-10712 duplicate checking on save only ([3665b76](3665b76))
* DHIS2-10713 when optionSet use EQ to filter ([#1624](#1624)) ([60b3764](60b3764)), closes [#1618](#1618)
* DHIS2-10715 working lists default sorting ([e8280c3](e8280c3))
* DHIS2-10716 use code if option not found ([b80effd](b80effd))
* DHIS2-10723 ([#1622](#1622)) ([#1631](#1631)) ([fce7307](fce7307))
* DHIS2-10723 port on 2.36.0 ([#1630](#1630)) ([#1633](#1633)) ([b47524f](b47524f)), closes [#1622](#1622)
* **translations:** [DHIS2-8998] missing translation ([#1617](#1617)) ([70b103e](70b103e))
* DHIS2-10738 pressing the back button after a fallback crashes app ([#1581](#1581)) ([6a75e9c](6a75e9c))
* DHIS2-10765 use form names ([8578891](8578891))
* DHIS2-10765 use form names ([ab74dc3](ab74dc3))
* DHIS2-10830 capture app will crash when program is missing some orgUnits ([#1600](#1600)) ([dc1a351](dc1a351)), closes [#1483](#1483) [#1532](#1532) [#1410](#1410) [#1536](#1536) [#1536](#1536) [#1588](#1588) [#1581](#1581) [#1580](#1580) [#1589](#1589)
* DHIS2-9931 wording from Find to Search ([#1540](#1540)) ([0893bad](0893bad))
* TECH-542 Switch to new endpoint for org units ([dba014e](dba014e))
* the bug ([#1536](#1536)) ([043f4fd](043f4fd))
* the bug ([#1580](#1580)) ([c491a00](c491a00))
* **translations:** sync translations from transifex (v36) ([c017642](c017642))

### Features

* adds new icon for capture app ([#1534](#1534)) ([c700edd](c700edd))
* adds smaller icon ([#1544](#1544)) ([181a94c](181a94c))
* DHIS2-10218 stages and events widget - user can see a list of the different stages ([524dd92](524dd92))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 1.16.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