Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Conversation

realaravinth
Copy link
Member

@realaravinth realaravinth commented Apr 14, 2022

blocked by #9

TEST INSTABILITY

db/test_comments test was unstable because data generated were saved at separate locations, resulting in uncontrolled/weird data created and updated time. All test data are now saved with one save call, at the top most data type(DBComment is at a higher level as it wraps over/dependent on DBIssue)

SUMMARY
    DBIssue and DBComment loaded data from database when performing
    updates via self.__update() which in some cases where unnecessary as a
    fetch would have been performed just before invoking __update().

    This patch introduces an optical parameter to provide recently
    loaded data from DB
TEST INSTABILITY

    db/test_comments test was unstable because data generated were saved
    at separate locations, resulting in uncontrolled/weird data created
    and updated time. All test data are now saved with one save call,
    at the top most data type(DBComment is at a higher level as it wraps
    over/dependant on DBIssue)
@realaravinth realaravinth requested a review from dat-adi April 14, 2022 18:33
@realaravinth realaravinth marked this pull request as draft April 14, 2022 18:40
@realaravinth
Copy link
Member Author

Apologies, I forgot to check in caching code which is WIP. Will update tomorrow.

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

Successfully merging this pull request may close these issues.

1 participant