René's URL Explorer Experiment


Title: inconsistency API on get, update and create · Issue #42 · wavefrontHQ/python-client · GitHub

Open Graph Title: inconsistency API on get, update and create · Issue #42 · wavefrontHQ/python-client

X Title: inconsistency API on get, update and create · Issue #42 · wavefrontHQ/python-client

Description: please point me to the right documentation if I understand it incorrectly. it seems some inconsistency on get_, update_ and create_ API I am using "dashboard" as example api/dashboard_api.py::get_ and update_ requires a parameter id. def...

Open Graph Description: please point me to the right documentation if I understand it incorrectly. it seems some inconsistency on get_, update_ and create_ API I am using "dashboard" as example api/dashboard_api.py::get_ ...

X Description: please point me to the right documentation if I understand it incorrectly. it seems some inconsistency on get_, update_ and create_ API I am using "dashboard" as example api/dashboard_api...

Opengraph URL: https://github.com/wavefrontHQ/python-client/issues/42

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"inconsistency API on get, update and create","articleBody":"please point me to the right documentation if I understand it incorrectly. \r\nit seems some inconsistency on get_, update_ and create_ API \r\nI am using \"dashboard\" as example \r\n\r\napi/dashboard_api.py::get_ and update_ requires a parameter id.\r\n\r\n```\r\ndef get_dashboard(self, id, **kwargs)\r\n```\r\n\r\nbut for dashboard. it requires both id and url be unique \r\nwavefront_api_client/models/dashboard.py\r\n\r\n```\r\n@id.setter\r\n    def id(self, id):\r\n        \"\"\"Sets the id of this Dashboard.\r\n        Unique identifier, also URL slug, of the dashboard  # noqa: E501\r\n        :param id: The id of this Dashboard.  # noqa: E501\r\n        :type: str\r\n        \"\"\"\r\n        if id is None:\r\n            raise ValueError(\"Invalid value for `id`, must not be `None`\")  # noqa: E501\r\n\r\n        self._id = id\r\n\r\n@property\r\n    def url(self):\r\n        \"\"\"Gets the url of this Dashboard.  # noqa: E501\r\n        Unique identifier, also URL slug, of the dashboard  # noqa: E501\r\n        :return: The url of this Dashboard.  # noqa: E501\r\n        :rtype: str\r\n        \"\"\"\r\n        return self._url\r\n```\r\n\r\nthat creates a problem. when I need to create a new dashboard. How do I verify I am able to create the dashboard?  \r\n\r\nexample:\r\ncurrently I already have a dashboard on wavefront called: dashboard1 it has \r\n\r\n- id:dashboard1\r\n- url: dashboard1\r\n\r\nand user defined a new text file dashboard2.txt. in dashboard2.txt defines\r\n- id: dashboard2\r\n- url: dashboard1\r\n\r\nwhen I try to create new dashboard2, I can find \"id\" from dashboard2.txt, and check it via \r\n```\r\napi_instance.get_dashboard(id)\r\n```\r\nsince dashboard2 has id \"dashboard2\", I will get 404 back from get_dashboard, then I assuming it's safe to create new dashboard2 by calling \r\n```\r\napi_instance.create_dashboard(body=content_of(dashboard2.txt))\r\n```\r\nbut this will result in error\r\n\u003e {\"status\":{\"result\":\"ERROR\",\"message\":\"Unable to create the dashboard.  Perhaps a dashboard already exists at id dashboard1\",\"code\":400}}\r\n\r\nit's similar for update_dashboard. if I have 2 dashboard on wavefront already, it has url: dashboard1 and dashboard2, and I am trying to update dashboard1 with url \"dashboard2\" it will result in similar error. \r\n\r\nI understand I can call **get_all_dashboard** and iterate over to find all id/url or I can just use \"try ... except\" then try to do string match from error message, but wavefront should provide a better way to allow user to write **predictable code.** (try...except feels not that predictable).  We migrate to wavefront this year (couple month ago) and currently we already have 438 pages of dashboard. (I think it's 25 per page) so iterate over all dashboard doesn't work well either. \r\n\r\nif there's already code to empower user to do what I described above, then I would suggest to update documentation so users can easily find the answer. ( I didn't read the source, I was reading trying to only read Python SDK documentation linked from README.md)","author":{"url":"https://github.com/ruivapps","@type":"Person","name":"ruivapps"},"datePublished":"2018-07-26T20:37:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/42/python-client/issues/42"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e522f9c2-7ce0-dbc1-6971-493b22632325
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id93FE:B29C0:143BA81:1969343:697EDC1A
html-safe-nonce2d9e4d2f745f0447670d49950e0a4c3033eb2b0c27eaaf33fbf40e6ca4142a6c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5M0ZFOkIyOUMwOjE0M0JBODE6MTk2OTM0Mzo2OTdFREMxQSIsInZpc2l0b3JfaWQiOiIyNTM3ODA3MTYzNzc5MTExOTYyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac6310581b3033567a1c759456802148e7ac38c9f187c5faf518645be2d429b1ab
hovercard-subject-tagissue:344996421
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/wavefrontHQ/python-client/42/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2ac03ffef8680c15f6a5ae791a291762e1c9d45b14948818b4dca0d942c650ad/wavefrontHQ/python-client/issues/42
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2ac03ffef8680c15f6a5ae791a291762e1c9d45b14948818b4dca0d942c650ad/wavefrontHQ/python-client/issues/42
og:image:altplease point me to the right documentation if I understand it incorrectly. it seems some inconsistency on get_, update_ and create_ API I am using "dashboard" as example api/dashboard_api.py::get_ ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameruivapps
hostnamegithub.com
expected-hostnamegithub.com
None60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6
turbo-cache-controlno-preview
go-importgithub.com/wavefrontHQ/python-client git https://github.com/wavefrontHQ/python-client.git
octolytics-dimension-user_id13057332
octolytics-dimension-user_loginwavefrontHQ
octolytics-dimension-repository_id57399853
octolytics-dimension-repository_nwowavefrontHQ/python-client
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id57399853
octolytics-dimension-repository_network_root_nwowavefrontHQ/python-client
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release7c85641c598ad130c74f7bcc27f58575cac69551
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/wavefrontHQ/python-client/issues/42#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FwavefrontHQ%2Fpython-client%2Fissues%2F42
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://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FwavefrontHQ%2Fpython-client%2Fissues%2F42
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=wavefrontHQ%2Fpython-client
Reloadhttps://patch-diff.githubusercontent.com/wavefrontHQ/python-client/issues/42
Reloadhttps://patch-diff.githubusercontent.com/wavefrontHQ/python-client/issues/42
Reloadhttps://patch-diff.githubusercontent.com/wavefrontHQ/python-client/issues/42
wavefrontHQ https://patch-diff.githubusercontent.com/wavefrontHQ
python-clienthttps://patch-diff.githubusercontent.com/wavefrontHQ/python-client
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FwavefrontHQ%2Fpython-client
Fork 24 https://patch-diff.githubusercontent.com/login?return_to=%2FwavefrontHQ%2Fpython-client
Star 11 https://patch-diff.githubusercontent.com/login?return_to=%2FwavefrontHQ%2Fpython-client
Code https://patch-diff.githubusercontent.com/wavefrontHQ/python-client
Issues 4 https://patch-diff.githubusercontent.com/wavefrontHQ/python-client/issues
Pull requests 1 https://patch-diff.githubusercontent.com/wavefrontHQ/python-client/pulls
Actions https://patch-diff.githubusercontent.com/wavefrontHQ/python-client/actions
Projects 0 https://patch-diff.githubusercontent.com/wavefrontHQ/python-client/projects
Security 0 https://patch-diff.githubusercontent.com/wavefrontHQ/python-client/security
Insights https://patch-diff.githubusercontent.com/wavefrontHQ/python-client/pulse
Code https://patch-diff.githubusercontent.com/wavefrontHQ/python-client
Issues https://patch-diff.githubusercontent.com/wavefrontHQ/python-client/issues
Pull requests https://patch-diff.githubusercontent.com/wavefrontHQ/python-client/pulls
Actions https://patch-diff.githubusercontent.com/wavefrontHQ/python-client/actions
Projects https://patch-diff.githubusercontent.com/wavefrontHQ/python-client/projects
Security https://patch-diff.githubusercontent.com/wavefrontHQ/python-client/security
Insights https://patch-diff.githubusercontent.com/wavefrontHQ/python-client/pulse
inconsistency API on get, update and createhttps://patch-diff.githubusercontent.com/wavefrontHQ/python-client/issues/42#top
https://github.com/ruivapps
https://github.com/ruivapps
ruivappshttps://github.com/ruivapps
on Jul 26, 2018https://github.com/wavefrontHQ/python-client/issues/42#issue-344996421
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.