Support on_demand policy for remote
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 65/100
Research direction
Look at the remote model and serializer in the codebase to see where the policy choices are defined. The error indicates 'on_demand' is not a valid choice; add it to the allowed policies. Check the linked pulp-cli-maven issue for context. Test by creating a remote with the on_demand policy via the API as shown.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem? Please describe.
I'd like to be able to make a pull-through cache, using the on_demand policy.
This plugin doesn't seem to support it.
Describe the solution you'd like
Add support for on_demand and streaming policies.
Describe alternatives you've considered
None
Additional context
Example POST and response:
curl -u user:password -X POST \
http://localhost:8080/pulp/api/v3/remotes/maven/maven/ \
-H "Content-Type: application/json" \
-d '{
"name": "maven-central",
"url": "https://repo1.maven.org/maven2/",
"policy": "on_demand"
}'
{"policy":["\"on_demand\" is not a valid choice."]}
- Dominant language
- Python
- Stars
- 5
- Forks
- 30
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 27
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pulp/pulp_maven
-
Nightly s3 unit tests fail under pytest 9.2.0: 'S3Storage' object has no attribute 'location'Possibly taken @dkliban claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
pulp/pulp_maven#566 ·
Maintainers usually reply within 1 day
-
InvalidIndex exception triggers pulpcore deprecation warning in CIPossibly taken @git-hyagi claimed this 24 days ago. OpenIssue
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
pulp/pulp_maven#535 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
pulp/pulp_maven#563 ·
Maintainers usually reply within 1 day
-
_save_prefixes_txt crashes with DoesNotExist when two domains produce identical prefixes.txtPossibly taken @git-hyagi claimed this 6 days ago. OpenIssue
Difficulty 4/5 3-5 days Newbie friendliness 57/100
pulp/pulp_maven#557 ·
Maintainers usually reply within 1 day
-
Redeploying the same coordinates with different content returns 201 but keeps serving the old filePossibly taken @aevnsvi claimed this 13 days ago. Open
Difficulty 4/5 1-2 days Newbie friendliness 58/100
pulp/pulp_maven#551 ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
elviskahoro/sdk-python-attio#144 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
RenyiELBO raises TypeError when model has no sample sitesPossibly taken @alibb007 claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
[Bug]: Four evaluation scripts unpack init_memmachine_params's five return values into three namesOpen
Difficulty 1/5 Under an hour Newbie friendliness 88/100
MemMachine/MemMachine#1911 ·
Maintainers usually reply within 3 days