Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Regression: uploader queries doesn't work properly in >=2.1.0 #257

@psrok1

Description

@psrok1

Environment information

  • MWDB version (from /about): 2.1.1
  • Installation method:
    • Generic docker-compose
    • Dev docker-compose
    • Native (from source)
    • Other (please explain)

Behaviour the bug (what happened?)

  • uploader query doesn't show samples uploaded by provided user/group. Results include more records than expected

Expected behaviour

  • uploader:XYZ should show only objects uploaded by user/group XYZ

Reproduction Steps

  1. Click on Only uploaded by me
  2. You should see samples that are not uploaded by yourself (check Shares in Detailed view of few samples)

Additional context

Regression is probably related with that change:

v2.0.0...v2.1.1#diff-72bbd8c60cd9a301b605f69265bab6805b46536eb40f351347a224a5389ed766L226

join performs INNER JOIN operation which is not equivalent to joinedload.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:up for grabsWell-designed tasks that are a good candidate for PRtype:bugSomething isn't workingzone:backendMWDB backend core related tasks

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions