Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "LGA-785 - Adding Education and Discrimination categories to LAALAA" #133

Conversation

said-moj
Copy link
Contributor

@said-moj said-moj commented Sep 5, 2019

Reverts #132

Seems like the CSV upload clears / populates the categories

See
https://github.com/ministryofjustice/laa-legal-adviser-api/blob/master/laalaa/apps/advisers/tasks.py#L55

and

https://github.com/ministryofjustice/laa-legal-adviser-api/blob/master/laalaa/apps/advisers/tasks.py#L264

This means that categories should be managed through the providers upload rather than in code.

This leaves the question of why have fixtures / seed data when they are cleared and repopulated on import. This needs to be investigated separately of this revert

@said-moj said-moj requested a review from a team as a code owner September 5, 2019 08:59
{
"fields": {
"civil": true,
"code": "EDU"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about keeping changes in the seed fixtures?
It is still useful to populate these entries on our environments where we don't have uploads -- until we can add a "seed upload".

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In other words, I think it's enough to revert the migration.

@sldblog
Copy link
Contributor

sldblog commented Sep 5, 2019

Nice find. 👏

@said-moj said-moj requested a review from sldblog September 5, 2019 10:55
@said-moj said-moj merged commit d55ffcc into master Sep 5, 2019
@sldblog sldblog deleted the revert-132-feature/LGA-785_education-and-discrimination-categories branch October 28, 2019 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants