Skip to content
Snippets Groups Projects

Remove ProcessMode Repository

Merged ml bonhomme requested to merge repository-processnt into master
All threads resolved!

closes #1706 (closed)

(1) I made the corpus created in the migration to house the ex-Repository process public to avoid rights issues, but that's probably not ideal as it's a weird little fake corpus and it being public is strange. Maybe the better thing to do would be to give every existing user Guest access on it, and then also give Guest access to it to the default group to which all new users are added by default, if that's still a thing? I don't really remember how / if that works.

(2) I think the migrations work but I'm not 100% sure; they worked for my local DB with Repository processes in it, and they also work for the test DB which is being created every time, so it looks like they do?

I had trouble handling the fact that ProcessMode.Repository is present in a constraint on Process: at first I had just put a migrations.RemoveConstraint but that didn't work because the constraint is there in the inital process migrations, which failed when the ProcessMode enum was changed to remove Repository. Then I just removed the constraint from the initial migrations, as in the new ones I replace it with another one (either the process is Local or it has a corpus).

But I am Afraid it only looks like it works because of how I had initially removed the constraint and otherwise I'd be getting an error telling me a constraint with that name already exists.

Edited by ml bonhomme

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Erwan Rouchet
  • Erwan Rouchet
  • ml bonhomme resolved all threads

    resolved all threads

  • ml bonhomme resolved all threads

    resolved all threads

  • ml bonhomme added 1 commit

    added 1 commit

    • bdd49fcd - fix migrations attempt + update rights checks + remove validate_repository

    Compare with previous version

  • ml bonhomme added 1 commit

    added 1 commit

    • dbb6e71f - fix migrations attempt + update rights checks + remove validate_repository

    Compare with previous version

  • ml bonhomme added 1 commit

    added 1 commit

    Compare with previous version

  • ml bonhomme requested review from @erouchet

    requested review from @erouchet

  • Erwan Rouchet
  • There are 6 errors in the EE unit tests that will also need to be fixed: a test file uses a repository process, and some tests are using the repository mode to prevent an email being sent

  • ml bonhomme resolved all threads

    resolved all threads

  • ml bonhomme added 13 commits

    added 13 commits

    • 67d716fc...f453ddcd - 6 commits from branch master
    • 2d7d8bad - Remove ProcessMode Repository
    • 7f6253bd - Fix tests and remove Repository rights from Process ACL
    • 47419e2f - fix dataset neighbours test
    • d39d42c6 - remove repository process builder
    • 32492c25 - fix migrations attempt + update rights checks + remove validate_repository
    • 817b0d0c - migrations that work?
    • fb23ebd4 - wip apply review

    Compare with previous version

  • ml bonhomme added 1 commit

    added 1 commit

    Compare with previous version

  • ml bonhomme resolved all threads

    resolved all threads

  • ml bonhomme added 1 commit

    added 1 commit

    Compare with previous version

  • merged

  • Please register or sign in to reply
    Loading