-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[Feature Request]: Deprecate SuggestionEditStateContent #18442
Comments
@DubeySandeep Oops, you are right, thanks a lot! I closed the other one since this issue has a bit more detail. Thanks! |
Hello @seanlip, To solve this issue first i will write a beam job to delete all the "edit state content suggestion" model from datastore. Then will delete SuggestionEditStateContent domain object and other related code. I have started working on the beam job and will soon showcase it. |
Sounds good, thanks @masterboy376. One note though: make sure to do some analysis to ensure that the models you're deleting aren't referred to by other models (so that we don't run into errors when those other models get fetched). You can leave a comment here to explain what steps you took to do the analysis (in a way that others can reproduce). Thanks! |
Hello @seanlip,
the list of backed files that are using
and in the frontend part will have to make changes to
After this I came to the conclusion that here we only need to delete |
Thanks @masterboy376. Just to check though, did you see GeneralFeedbackThreadModel? It has a |
Thanks @seanlip, I did notice it. This model itself does not directly depend on |
@masterboy376 I did a bit of digging and I think you are right -- we can probably delete these models and the associated code without issue. From a bit of database archaeology, it looks like:
I mention these because it would be good to mention them in the testing doc when you create your PR. We should run your job on a server environment and then explicitly visit these explorations (both the learner view and the Editor/Feedback tabs in the editor view) to make sure they still function correctly. Please make sure to include the testing doc when you submit the PR for review, and we can take it from there -- thanks! |
@seanlip, just a question. |
@masterboy376 Great question. I suggest creating a PR with the Beam job and cleaning up the datastore (as mentioned above, make sure to include a testing doc with your PR). Then make a separate PR that cleans up all the code and submit that only after we get confirmation that the Beam job succeeded. One other note, Beam jobs that modify the datastore should be written in "audit" and "modify prod" versions (see existing examples in the codebase). Make sure your job is written that way too and that the audit job provides enough info to ensure that nothing goes amiss when the full job is run (it should probably just provide a list of things that will be deleted, but not actually do the deletions). |
… model (#20079) * wrote and regidtered beam job * fic failing checks * fixed some linting issues * address reviewer comments * modified test shards * addressed reviewer comments. * addressed reviewer comments * addressed reviewers comment * addressed reviewer comments * addressed reviewer comments
Is your feature request related to a problem? Please describe.
We used to have functionality where users could suggest changes/improvements to an exploration through the exploration player. The suggestions received via this functionality were not useful, so we deprecated the feature.
However, we still have SuggestionEditStateContent domain objects in the codebase and similar suggestions in the datastore. The aim of this issue is to track the removal of those items completely so that we don't need to maintain that code any more.
Describe the solution you'd like
Safely delete all "edit state content" suggestion models, as well as the SuggestionEditStateContent domain object and any code that relates to "edit state" suggestions (including in the exploration editor feedback tab).
The text was updated successfully, but these errors were encountered: