Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a way to get PK from resource URI without evaluating query #927

Merged
merged 1 commit into from
Sep 22, 2020

Conversation

dralley
Copy link
Contributor

@dralley dralley commented Sep 22, 2020

@dralley dralley force-pushed the extract-uri branch 3 times, most recently from 7f6194e to 6773851 Compare September 22, 2020 16:50
@pulpbot
Copy link
Member

pulpbot commented Sep 22, 2020

Attached issue: https://pulp.plan.io/issues/7483

dralley added a commit to dralley/pulp_rpm that referenced this pull request Sep 22, 2020
dralley added a commit to dralley/pulp_rpm that referenced this pull request Sep 22, 2020
@daviddavis
Copy link
Contributor

The extract_pk method looks good to me. Is it possible to reuse it in get_resource?

@dralley
Copy link
Contributor Author

dralley commented Sep 22, 2020

@daviddavis I was thinking about that earlier and decided that it couldn't be, the purpose is slightly orthogonal. The is code should only ever return a PK or a failure, the other code should fall back to doing a multi-attribute search. Re-using it would mean re-doing part of the work.

dralley added a commit to dralley/pulp_rpm that referenced this pull request Sep 22, 2020
dralley added a commit to dralley/pulp_rpm that referenced this pull request Sep 22, 2020
@dralley dralley merged commit b251a81 into pulp:master Sep 22, 2020
@dralley dralley deleted the extract-uri branch September 22, 2020 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants