Skip to content

Change corpus upload modal to use prop instead of graphQL

- requested to merge 326362-corpus-upload into master

What does this MR do and why?

Tech debt cleanup. Reduces the double graphQL query by passing down state as a prop. Issue: #327897 (closed)

Screenshots or screen recordings

Screen_Shot_2021-10-25_at_11.19.06_PMScreen_Shot_2021-10-25_at_11.18.21_PMScreen_Shot_2021-10-25_at_11.18.05_PM

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

  • From the gitlab repo open a rails console and enable the :corpus_management feature flag
bundle exec rails c

then

[4] pry(main)> Feature.enable(:corpus_management)

Navigate to:

http://172.16.123.1:3000/<group>/<project>/-/security/configuration/corpus_management

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #326362 (closed)

Edited by -

Merge request reports