pulp / pulp/pulp_container

Ensure recursive add and remove is not impacted by values_list()

Open
#460 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Task
Dominant language
Python
Stars
31
Forks
56
Avg merge
2d 22h
Merged PRs (30d)
22

Description

Author: @ipanova (ipanova@redhat.com)

Redmine Issue: 5823, https://pulp.plan.io/issues/5823


Django docs calls out that values_list() should not be used for many-to-many relationships, because the qs might give inaccurate results.

Look into recursive add and remove code and ensure our results are not influnced by usage of values_list()

https://github.com/pulp/pulp_rpm/pull/1524#discussion_r348469741

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the recursive add and remove entry points and their values_list() usage, using the linked pulp_rpm discussion for context. The issue is done when recursive results remain correct despite values_list(); no file or test is named, so locating the relevant coverage is part of the work.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.