learningequality / learningequality/studio

Remove Vuex content node module

Open
#3,469 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

DEV: frontend TAG: performance
Dominant language
Python
Stars
191
Forks
307
Avg merge
5d 6h
Merged PRs (30d)
10

Description

After we move away from using the Vuex channelEdit/contentNode module

https://github.com/learningequality/studio/blob/d6f06c273469ae8ad202774d40accc69817284ae/contentcuration/contentcuration/frontend/channelEdit/vuex/contentNode/index.js#L1-L75

let's check that there are no remaining dependencies on it and then remove the module completely.

Background

  • We accumulate content nodes data in Vuex contentNode/state from various Studio features of the channelEdit app and there is no mechanism for clearing them which causes memory leaks. This issue is part of a larger group of issues (see https://github.com/learningequality/studio/issues/3363) that aim to refactor problematic features away from using Vuex global state towards private in-components state or state that’s shared between more components but is cleared at some point and optimized performance-wise in general.

Acceptance criteria

  • There are no more remaining references to the Vuex content node module (if there are some forgotten places that are still using it that require a larger amount of work, new issues are open and resolved before resolving this issue)
  • Vuex content node module exists no more

Blocked by

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review contentcuration/contentcuration/frontend/channelEdit/vuex/contentNode/index.js and first check the listed blocking issues before changing this module. Search the channelEdit app for remaining references to the Vuex content node module; done means no references remain and the module no longer exists, with larger remaining work tracked separately.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.