René's URL Explorer Experiment


Title: Push api call to a push source that doesn't exist returns 200 · Issue #3210 · feast-dev/feast · GitHub

Open Graph Title: Push api call to a push source that doesn't exist returns 200 · Issue #3210 · feast-dev/feast

X Title: Push api call to a push source that doesn't exist returns 200 · Issue #3210 · feast-dev/feast

Description: Expected Behavior When we POST to a push source that doesn't exist like so curl -X POST "http://localhost:6566/push" -d '{ "push_source_name": "push_source_name_that_does_not_exist", "df": { "some_entity": [1001], "event_timestamp": ["20...

Open Graph Description: Expected Behavior When we POST to a push source that doesn't exist like so curl -X POST "http://localhost:6566/push" -d '{ "push_source_name": "push_source_name_that_does_not_exist", "df": { "some_...

X Description: Expected Behavior When we POST to a push source that doesn't exist like so curl -X POST "http://localhost:6566/push" -d '{ "push_source_name": "push_source_name_tha...

Opengraph URL: https://github.com/feast-dev/feast/issues/3210

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Push api call to a push source that doesn't exist returns 200","articleBody":"## Expected Behavior \r\nWhen we `POST` to a push source that doesn't exist like so\r\n```\r\ncurl -X POST \"http://localhost:6566/push\" -d '{\r\n    \"push_source_name\": \"push_source_name_that_does_not_exist\",\r\n    \"df\": {\r\n            \"some_entity\": [1001],\r\n            \"event_timestamp\": [\"2022-05-13 10:59:42\"],\r\n            \"created\": [\"2022-05-13 10:59:42\"],\r\n            ...\r\n    },\r\n    \"to\": \"online_and_offline\",\r\n  }' | jq\r\n```\r\nI'd expect an error. It is a valid format to the correct endpoint, but is an entity that doesn't exist. A [422 unprocessable entity](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422) error would probably make sense here.\r\n\r\n## Current Behavior\r\nMethod `FeatureStore().push` receives a [`push_source_name`](https://github.com/feast-dev/feast/blob/7c50ab510633c11646b6ff04853f3f26942ad646/sdk/python/feast/feature_store.py#L1418) indicating which feature views are impacted by the new data being pushed. The set of feature views is filtered down [here](https://github.com/feast-dev/feast/blob/7c50ab510633c11646b6ff04853f3f26942ad646/sdk/python/feast/feature_store.py#L1437-L1445). If a push source name is provided that doesn't actually exist then the resulting set is empty, the loop is skipped and the function is a no-op. This successful return means that the [`/push` call in feature_server.py](https://github.com/feast-dev/feast/blob/master/sdk/python/feast/feature_server.py#L95-L100) never throws to return an error code.\r\n\r\n## Steps to reproduce\r\n* start a local feature server\r\n* make a push call to a push source that does not exist\r\n\r\n### Specifications\r\n\r\n- Version:\r\n- Platform:\r\n- Subsystem:\r\n\r\n## Possible Solution\r\n* Raise a custom exception when no push source is found with the provided name\r\n* Catch that exception in the feature server\r\n* Return 422 in that case\r\n\r\nIf this is considered reasonable, I'm happy to make the contribution myself.","author":{"url":"https://github.com/robhowley","@type":"Person","name":"robhowley"},"datePublished":"2022-09-13T20:20:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/3210/feast/issues/3210"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2b69b360-387a-d007-69ef-c26604ce5f08
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE7EC:330DBF:21AF6DA:2EAE29C:69728EFB
html-safe-nonce06f851ab3899c7ba4b55de3485510c040325ff1c268fae4e36912a0abd84a3dc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFN0VDOjMzMERCRjoyMUFGNkRBOjJFQUUyOUM6Njk3MjhFRkIiLCJ2aXNpdG9yX2lkIjoiMjc2OTQzMjI2MzI2NTUyMTQwMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac39075465acba7f1e506b6f49aab571a3d287e38a7f41190740e668bc08d58f6d
hovercard-subject-tagissue:1371963723
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/feast-dev/feast/3210/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8ff87414e2a643ba4be9e331bd35f318db5132c7f89f4a3edc96360e4df4e387/feast-dev/feast/issues/3210
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8ff87414e2a643ba4be9e331bd35f318db5132c7f89f4a3edc96360e4df4e387/feast-dev/feast/issues/3210
og:image:altExpected Behavior When we POST to a push source that doesn't exist like so curl -X POST "http://localhost:6566/push" -d '{ "push_source_name": "push_source_name_that_does_not_exist", "df": { "some_...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerobhowley
hostnamegithub.com
expected-hostnamegithub.com
Nonef55b89ef71fda443a25c469605964fe31f4313158c4238f900f8894d6f31ffa4
turbo-cache-controlno-preview
go-importgithub.com/feast-dev/feast git https://github.com/feast-dev/feast.git
octolytics-dimension-user_id57027613
octolytics-dimension-user_loginfeast-dev
octolytics-dimension-repository_id161133770
octolytics-dimension-repository_nwofeast-dev/feast
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id161133770
octolytics-dimension-repository_network_root_nwofeast-dev/feast
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
release69ed002f93fb5a101bb3ef79e8704a63acc02bd2
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/feast-dev/feast/issues/3210#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Ffeast-dev%2Ffeast%2Fissues%2F3210
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%2Ffeast-dev%2Ffeast%2Fissues%2F3210
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%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=feast-dev%2Ffeast
Reloadhttps://github.com/feast-dev/feast/issues/3210
Reloadhttps://github.com/feast-dev/feast/issues/3210
Reloadhttps://github.com/feast-dev/feast/issues/3210
feast-dev https://github.com/feast-dev
feasthttps://github.com/feast-dev/feast
Notifications https://github.com/login?return_to=%2Ffeast-dev%2Ffeast
Fork 1.2k https://github.com/login?return_to=%2Ffeast-dev%2Ffeast
Star 6.6k https://github.com/login?return_to=%2Ffeast-dev%2Ffeast
Code https://github.com/feast-dev/feast
Issues 181 https://github.com/feast-dev/feast/issues
Pull requests 64 https://github.com/feast-dev/feast/pulls
Discussions https://github.com/feast-dev/feast/discussions
Actions https://github.com/feast-dev/feast/actions
Security 0 https://github.com/feast-dev/feast/security
Insights https://github.com/feast-dev/feast/pulse
Code https://github.com/feast-dev/feast
Issues https://github.com/feast-dev/feast/issues
Pull requests https://github.com/feast-dev/feast/pulls
Discussions https://github.com/feast-dev/feast/discussions
Actions https://github.com/feast-dev/feast/actions
Security https://github.com/feast-dev/feast/security
Insights https://github.com/feast-dev/feast/pulse
New issuehttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/3210
New issuehttps://github.com/login?return_to=https://github.com/feast-dev/feast/issues/3210
#3214https://github.com/feast-dev/feast/pull/3214
Push api call to a push source that doesn't exist returns 200https://github.com/feast-dev/feast/issues/3210#top
#3214https://github.com/feast-dev/feast/pull/3214
kind/bughttps://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/p2https://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22priority%2Fp2%22
https://github.com/robhowley
https://github.com/robhowley
robhowleyhttps://github.com/robhowley
on Sep 13, 2022https://github.com/feast-dev/feast/issues/3210#issue-1371963723
422 unprocessable entityhttps://developer.mozilla.org/en-US/docs/Web/HTTP/Status/422
push_source_namehttps://github.com/feast-dev/feast/blob/7c50ab510633c11646b6ff04853f3f26942ad646/sdk/python/feast/feature_store.py#L1418
herehttps://github.com/feast-dev/feast/blob/7c50ab510633c11646b6ff04853f3f26942ad646/sdk/python/feast/feature_store.py#L1437-L1445
/push call in feature_server.pyhttps://github.com/feast-dev/feast/blob/master/sdk/python/feast/feature_server.py#L95-L100
kind/bughttps://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/p2https://github.com/feast-dev/feast/issues?q=state%3Aopen%20label%3A%22priority%2Fp2%22
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.