Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
erp5 erp5
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Labels
    • Labels
  • Merge requests 140
    • Merge requests 140
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedi
  • erp5erp5
  • Merge requests
  • !265

Merged
Created May 01, 2017 by Jérome Perrin@jeromeOwner

Inventory API: reimplement variation_category

  • Overview 8
  • Commits 3
  • Changes 5

In its current implementation ( introduced in 4787eadd ), variation_category parameter of Inventory API require movements to be in the predicate_category table. The approach is to do a first query to get uids of all movements members of the variation and pass their uid to catalog. My guess is that this does not scale well. It also uses deprecated where_expression and generates invalid SQL when no movements match.

As far as I know, it is only used in testInventory. We could also consider dropping it, but keeping compatibility is easy.

This implementation just use variation_text.

Test results are OK; there is one functional test failure but it really looks unrelated.

@yusei @vpelletier @seb @romain do you see problems with this ?

Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: fix/inventory_api_variation_category
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7