Skip to content

Make sure that task fixtures loads data from the project #577

Open
@etj

Description

@etj
Contributor

Is seems that fixtures are loaded from the main geonode fixtures/ folder and NOT from the project folder

Activity

etj

etj commented on Jun 19, 2025

@etj
ContributorAuthor
  1. fixtures/ should be moved within the app for django to be able to find it
  2. it seems that files with the same name are all loaded into the db with upsert logic.
    i.e.: in the project we modified a description of a topic category in the initial_data.json, and removed another one
    The final DB contained also the removed topicCategory, and the modified description
    It means that django first loaded the geonode/fixtures/initial_data.json file, and then the projectXXX/fixtures/initial_data.json file
added this to the 5.0.0 milestone on Jun 20, 2025
self-assigned this
on Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @giohappy@etj

      Issue actions

        Make sure that task fixtures loads data from the project · Issue #577 · GeoNode/geonode-project