Skip to content

Global variables that persist across version updates #3287

Closed
@italojohnny

Description

@italojohnny

Title

Precautions for global variables

Type

Improvement

Description

During the development of this task, all open issues related to global variables were reviewed and closed. It was observed that there wasn't an actual problem in these issues, as the most recent versions of the code had already resolved the mentioned concerns: (#2988 #3021 #2392).

Use Case

However, one particular issue (#3066) raised the hypothesis that the database was being deleted during updates. As a result, we considered changing the default location where the database is saved. However, this idea was soon discarded after attempting to reproduce the issue. Tests were conducted by creating the package using the poetry build command and installing it in virtual environments, where it was confirmed that the database was preserved between installations.

Implementation Plan

To ensure that environment variables are correctly handled by the code, PR #3284 was created, and to guide users on the necessary precautions, PR #3285 was introduced.

During the development of these PRs, it was identified that the refactoring could be expanded to other database entities, which is now available in the draft PR #3286.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions