René's URL Explorer Experiment


Title: fix: Emulate `permissive` on REST backend (closes #222) by crazyscientist · Pull Request #223 · python-bugzilla/python-bugzilla · GitHub

Open Graph Title: fix: Emulate `permissive` on REST backend (closes #222) by crazyscientist · Pull Request #223 · python-bugzilla/python-bugzilla

X Title: fix: Emulate `permissive` on REST backend (closes #222) by crazyscientist · Pull Request #223 · python-bugzilla/python-bugzilla

Description: _BackendREST.bug_get cannot pass a permissive parameter to the server as the REST API does not honor such a parameter. With this change, permissiveness is handled inside the method: If permissive is false and a single ID or alias is requested, the "get" method is used and an exception gets raised in case of error. Otherwise, the "search" method is used, which may return an empty list, if the client is not authenticated or an ID or alias does not exist. closes #222

Open Graph Description: _BackendREST.bug_get cannot pass a permissive parameter to the server as the REST API does not honor such a parameter. With this change, permissiveness is handled inside the method: If permissive i...

X Description: _BackendREST.bug_get cannot pass a permissive parameter to the server as the REST API does not honor such a parameter. With this change, permissiveness is handled inside the method: If permissive i...

Opengraph URL: https://github.com/python-bugzilla/python-bugzilla/pull/223

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:474095fd-0cdb-1821-1e7d-28a5b34299aa
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8A02:393A97:784956:A8EBEE:697B38C9
html-safe-noncea50e2a1baf926cc8ce1c98e5cbfa7aa76794a3eb2111f867c44cc9c827019fad
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTAyOjM5M0E5Nzo3ODQ5NTY6QThFQkVFOjY5N0IzOEM5IiwidmlzaXRvcl9pZCI6IjI4MjI2NTc5NTQ3MTk0MTQ0NzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac38bbc5a1c426b652a44a2c651db7925098496f762e4ad47fdbc5497861b7b732
hovercard-subject-tagpull_request:2119877677
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python-bugzilla/python-bugzilla/pull/223/files
twitter:imagehttps://avatars.githubusercontent.com/u/1128117?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1128117?s=400&v=4
og:image:alt_BackendREST.bug_get cannot pass a permissive parameter to the server as the REST API does not honor such a parameter. With this change, permissiveness is handled inside the method: If permissive i...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonefafe45093eef66985deae0e99f7a21cfcaab2b848d523f0b83a3c0eda47ba2d6
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python-bugzilla/python-bugzilla git https://github.com/python-bugzilla/python-bugzilla.git
octolytics-dimension-user_id12552361
octolytics-dimension-user_loginpython-bugzilla
octolytics-dimension-repository_id36042880
octolytics-dimension-repository_nwopython-bugzilla/python-bugzilla
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36042880
octolytics-dimension-repository_network_root_nwopython-bugzilla/python-bugzilla
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasedad016ab162cd9537e0281c81809a9612a837d5f
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-bugzilla/python-bugzilla/pull/223/changes#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-bugzilla%2Fpython-bugzilla%2Fpull%2F223%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-bugzilla%2Fpython-bugzilla%2Fpull%2F223%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python-bugzilla%2Fpython-bugzilla
Reloadhttps://github.com/python-bugzilla/python-bugzilla/pull/223/changes
Reloadhttps://github.com/python-bugzilla/python-bugzilla/pull/223/changes
Reloadhttps://github.com/python-bugzilla/python-bugzilla/pull/223/changes
python-bugzilla https://github.com/python-bugzilla
python-bugzillahttps://github.com/python-bugzilla/python-bugzilla
Notifications https://github.com/login?return_to=%2Fpython-bugzilla%2Fpython-bugzilla
Fork 113 https://github.com/login?return_to=%2Fpython-bugzilla%2Fpython-bugzilla
Star 127 https://github.com/login?return_to=%2Fpython-bugzilla%2Fpython-bugzilla
Code https://github.com/python-bugzilla/python-bugzilla
Issues 2 https://github.com/python-bugzilla/python-bugzilla/issues
Pull requests 2 https://github.com/python-bugzilla/python-bugzilla/pulls
Actions https://github.com/python-bugzilla/python-bugzilla/actions
Wiki https://github.com/python-bugzilla/python-bugzilla/wiki
Security 0 https://github.com/python-bugzilla/python-bugzilla/security
Insights https://github.com/python-bugzilla/python-bugzilla/pulse
Code https://github.com/python-bugzilla/python-bugzilla
Issues https://github.com/python-bugzilla/python-bugzilla/issues
Pull requests https://github.com/python-bugzilla/python-bugzilla/pulls
Actions https://github.com/python-bugzilla/python-bugzilla/actions
Wiki https://github.com/python-bugzilla/python-bugzilla/wiki
Security https://github.com/python-bugzilla/python-bugzilla/security
Insights https://github.com/python-bugzilla/python-bugzilla/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fpython-bugzilla%2Fpython-bugzilla%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython-bugzilla%2Fpython-bugzilla%2Fissues%2Fnew%2Fchoose
crobinsohttps://github.com/crobinso
python-bugzilla:mainhttps://github.com/python-bugzilla/python-bugzilla/tree/main
crazyscientist:222-rest-permissivehttps://github.com/crazyscientist/python-bugzilla/tree/222-rest-permissive
Conversation 2 https://github.com/python-bugzilla/python-bugzilla/pull/223
Commits 2 https://github.com/python-bugzilla/python-bugzilla/pull/223/commits
Checks 0 https://github.com/python-bugzilla/python-bugzilla/pull/223/checks
Files changed https://github.com/python-bugzilla/python-bugzilla/pull/223/files
Please reload this pagehttps://github.com/python-bugzilla/python-bugzilla/pull/223/changes
fix: Emulate permissive on REST backend (closes #222) https://github.com/python-bugzilla/python-bugzilla/pull/223/changes#top
Show all changes 2 commits https://github.com/python-bugzilla/python-bugzilla/pull/223/files
6651bcb test: Use a class to organize tests in test_backend_rest.py crazyscientist Oct 11, 2024 https://github.com/python-bugzilla/python-bugzilla/pull/223/commits/6651bcba4a88827f3503112b3f108da9ecc44a4e
a349e81 fix: Emulate `permissive` on REST backend (closes #222) crazyscientist Oct 11, 2024 https://github.com/python-bugzilla/python-bugzilla/pull/223/commits/a349e81dcff9fb6efae3903afa0862faf55daa55
Clear filters https://github.com/python-bugzilla/python-bugzilla/pull/223/files
Please reload this pagehttps://github.com/python-bugzilla/python-bugzilla/pull/223/changes
Please reload this pagehttps://github.com/python-bugzilla/python-bugzilla/pull/223/changes
_backendrest.py https://github.com/python-bugzilla/python-bugzilla/pull/223/changes#diff-e92ec9a65e75796fb187c36adcdfd61c8cbb125bf8e68b578c633b2c033c8d84
test_backend_rest.py https://github.com/python-bugzilla/python-bugzilla/pull/223/changes#diff-9c964c3b8cd3b950dcdda273becb6be14e02eff3440624d46bd3bbc8e8f915cf
bugzilla/_backendrest.pyhttps://github.com/python-bugzilla/python-bugzilla/pull/223/changes#diff-e92ec9a65e75796fb187c36adcdfd61c8cbb125bf8e68b578c633b2c033c8d84
View file https://github.com/crazyscientist/python-bugzilla/blob/a349e81dcff9fb6efae3903afa0862faf55daa55/bugzilla/_backendrest.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-bugzilla/python-bugzilla/pull/223/{{ revealButtonHref }}
https://github.com/python-bugzilla/python-bugzilla/pull/223/changes#diff-e92ec9a65e75796fb187c36adcdfd61c8cbb125bf8e68b578c633b2c033c8d84
https://github.com/python-bugzilla/python-bugzilla/pull/223/changes#diff-e92ec9a65e75796fb187c36adcdfd61c8cbb125bf8e68b578c633b2c033c8d84
tests/test_backend_rest.pyhttps://github.com/python-bugzilla/python-bugzilla/pull/223/changes#diff-9c964c3b8cd3b950dcdda273becb6be14e02eff3440624d46bd3bbc8e8f915cf
View file https://github.com/crazyscientist/python-bugzilla/blob/a349e81dcff9fb6efae3903afa0862faf55daa55/tests/test_backend_rest.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/python-bugzilla/python-bugzilla/pull/223/{{ revealButtonHref }}
https://github.com/python-bugzilla/python-bugzilla/pull/223/changes#diff-9c964c3b8cd3b950dcdda273becb6be14e02eff3440624d46bd3bbc8e8f915cf
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.