Skip to content

get dataset by uri instead of id in rest api#25770

Merged
bbovenzi merged 2 commits intoapache:mainfrom
astronomer:get-dataset-by-uri
Aug 17, 2022
Merged

get dataset by uri instead of id in rest api#25770
bbovenzi merged 2 commits intoapache:mainfrom
astronomer:get-dataset-by-uri

Conversation

@bbovenzi
Copy link
Contributor

Dataset.id is just an incrementing integer and shouldn't be revealed to the user. Instead, we should get a dataset by its uri.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues labels Aug 17, 2022
@bbovenzi bbovenzi force-pushed the get-dataset-by-uri branch from a172ea0 to bca98c1 Compare August 17, 2022 18:01
schema:
type: integer
type: string
format: path
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the key piece to get strings with slashes in them to be accepted. We probably need to add this to a few other parts of the API

@bbovenzi bbovenzi merged commit 94d3e78 into apache:main Aug 17, 2022
@bbovenzi bbovenzi deleted the get-dataset-by-uri branch August 17, 2022 21:43
@bbovenzi bbovenzi changed the title get dataset by uri instead of if in rest api get dataset by uri instead of id in rest api Aug 17, 2022
@jedcunningham jedcunningham added changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) AIP-48 labels Sep 12, 2022
@ephraimbuddy ephraimbuddy added this to the Airflow 2.4.0 milestone Sep 14, 2022
@eladkal eladkal added area:data-aware-scheduling assets, datasets, AIP-48 and removed AIP-48 labels Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:data-aware-scheduling assets, datasets, AIP-48 area:UI Related to UI/UX. For Frontend Developers. area:webserver Webserver related Issues changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants