Project

Profile

Help

Issue #1625

closed

search by _id does not work in applicability calculation for repos

Added by ttereshc about 8 years ago. Updated about 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
3. High
Version:
Platform Release:
2.8.0
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

In id_list ObjectIds are expected rather than their dict/operator representation {"$oid": ...}

This issue only affects applicability calculation for repos if parallel flag is set to true.

$ curl -H "Accept: application/json" -X POST -d '{"repo_criteria":{"filters":{ "id": {"$in":["myrepo"]}}}, "parallel": true}' -k -u admin:admin 'https://localhost/pulp/api/v2/repositories/actions/content/regenerate_applicability/'

Update:
Steps to reproduce.
1. create repo, sync it
2. create consumer
3. bind consumer to repo
4. create profile for consumer which will contain at least one rpm from the repo
5. generate applicability for consumer (record in the repo_profile_applicability will appear)
6. increase version of the package in the repo
7. generate applicability for your repo with parallel flag set to true
The applicability won't be regenerated.

Actions #1

Updated by jortel@redhat.com about 8 years ago

  • Severity changed from 2. Medium to 3. High
  • Platform Release set to 2.8.0
  • Triaged changed from No to Yes
Actions #2

Updated by amacdona@redhat.com about 8 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to amacdona@redhat.com
Actions #3

Updated by amacdona@redhat.com about 8 years ago

  • Status changed from ASSIGNED to NEW
  • Assignee deleted (amacdona@redhat.com)
Actions #4

Updated by ttereshc about 8 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ttereshc
Actions #5

Updated by ttereshc about 8 years ago

  • Description updated (diff)
Actions #6

Updated by ttereshc about 8 years ago

  • Status changed from ASSIGNED to POST

Added by ttereshc about 8 years ago

Revision 0cf73129 | View on GitHub

Fix applicability calculation for repos if parallel flag is set to true.

closes #1625 https://pulp.plan.io/issues/1625

Added by ttereshc about 8 years ago

Revision 0cf73129 | View on GitHub

Fix applicability calculation for repos if parallel flag is set to true.

closes #1625 https://pulp.plan.io/issues/1625

Actions #7

Updated by ttereshc about 8 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #8

Updated by dkliban@redhat.com about 8 years ago

  • Status changed from MODIFIED to 5
Actions #9

Updated by dkliban@redhat.com about 8 years ago

  • Status changed from 5 to CLOSED - CURRENTRELEASE
Actions #10

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF