Skip to content

Remove unnecessary "rows" property from Redux Store #314

Open

Description

@lmatayoshi

"Rows" property is being loaded at Lab Record Import and Electronic Pharmacy Stock Record index, though they aren't required in that context. Rows are only required when accessing the details of a LRI.

Removing them from Redux Store at LRI index level will probably lead to potential gains in terms of memory consumption, because rows objects are big in size.

Activity

  1. changed the title [-]Remove unnecessary "rows" property from Redux Store[/-] [+]Remove unnecessary LRI "rows" property from Redux Store[/+] on Jun 17, 2020
  2. changed the title [-]Remove unnecessary LRI "rows" property from Redux Store[/-] [+]Remove unnecessary "rows" property from Redux Store[/+] on Nov 17, 2020
  3. lmatayoshi commented on Nov 17, 2020

    @lmatayoshi
    ContributorAuthor

    @mmuller a couple of this here:

    These changes modify the way the required data in the LabRecords and ElectronicPharmacyStockRecords lists is stored in memory. You shouldn't take notice of any of these changes unless something got broken.

    In order to accomplish that, I had to modify the way all entities were querying their data. So the mission is to verify that changes don't produce any undesirable effect over the lists: Sites, LabRecords, ElectronicPharmacyStockRecords, Patients, PatientEntries, Antibiotics and AntibioticConsumptionStats.

    We have to check that all the lists still show the correct data and that it remains properly scoped. For example, that the right LabRecords are shown for a given site, or that the right AntibioticConsumptionStats are shown for a given antibiotic and a given site.

    Finally, an additional check is that filters in Sites list and Antibiotics still work properly. And the same when creating new instances: Antibiotic, AntibioticConsumptionStats, Patient, PatientEntries or importing both LabRecords and ElectronicPharmacyStocks

  4. self-assigned this
    on Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

collectorIssues for maap-collectorenhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions