Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
erp5
erp5
  • Project
    • Project
    • Details
    • Activity
    • Releases
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Merge Requests 114
    • Merge Requests 114
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Jobs
  • Commits
  • nexedi
  • erp5erp5
  • Merge Requests
  • !204

Open
Opened Dec 07, 2016 by Ayush Tiwari@tiwariayush
  • Report abuse
Report abuse

WIP: Multiple catalog

This work is on top of erp5_catalog branch, so we are using erp5 catalog everywhere in this case.

Multiple Catalog:

  1. Site Manager creates multiple catalog using different connections.
  2. Each erp5_catalog comes with a predicate object.
  3. Extra attributes for catalog objects:
    • Validation state : Cataloging would be done only in validated catalogs.
    • Predicate: Predicate would be checked on each object to be cataloged.
  4. Every user would have preference to chose the preferred_catalog and that one would be used as the result of getSQLCatalog, without changing default_erp5_catalog_id

Problems:

  • Circular dependency while looking for preferred_catalog. For now, this has been taken care of by using default_erp5_catalog_id for the result of getSQLCatalog in case the user is manager. So, this way atleast we have all user and preferences cataloged at one place.

Check out, review, and merge locally

Step 1. Fetch and check out the branch for this merge request

git fetch https://lab.nexedi.com/tiwariayush/erp5.git multiple_catalog
git checkout -b tiwariayush/erp5-multiple_catalog FETCH_HEAD

Step 2. Review the changes locally

Step 3. Merge the branch and fix any conflicts that come up

git fetch origin
git checkout origin/master
git merge --no-ff tiwariayush/erp5-multiple_catalog

Step 4. Push the result of the merge to GitLab

git push origin master

Note that pushing to GitLab requires write access to this repository.

Tip: You can also checkout merge requests locally by following these guidelines.

  • Discussion 0
  • Commits 23
  • Changes 62
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
0
Labels
None
Assign labels
  • View project labels
Reference: nexedi/erp5!204
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备14008524号