Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

mysql does not preserve dependency_info #309

Open

Description

@ylil93

When saving a CompatibilityResult to mysql data store, dependency_info is required/included to the save, but when reading from mysql, the dependency_info field of the resulting CompatibilityResults are not set.

Activity

  1. added
    BacklogSomething that needs to eventually be fixed
    on May 6, 2019
  2. liyanhui1228 commented on May 7, 2019

    @liyanhui1228
    Member

    Just curious, are we still using datastore in the latest version of the badge server?

  3. ylil93 commented on May 7, 2019

    @ylil93
    ContributorAuthor

    Yes we are.

  4. changed the title [-]Datastore does not preserve dependency_info[/-] [+]mysql does not preserve dependency_info[/+] on May 7, 2019
  5. liyanhui1228 commented on May 7, 2019

    @liyanhui1228
    Member

    Per offline discussion, dependency_info is stored in the release_time_for_dependencies table in our MySQL database. And the issue here is that the save_compatibility_statuses function in compatibility_store is writing data to all the three tables we have in MySQL, thus it required dependency_info in the CompatibilityResult passed in to that function. But when writing tests, in some cases the CompatibilityResult doesn't contain the dependency_info, which makes the read and write to MySQL looks inconsistent.

    A possible improvement could be restructure the save_compatibility_statuses function to split to three sub methods that writes to the three different tables.

  6. ylil93 commented on May 7, 2019

    @ylil93
    ContributorAuthor

    Thanks for the explanation! Leaving this issue open until documentation/improvements are added to the project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BacklogSomething that needs to eventually be fixed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions