Skip to content

DC-3567 Add PUT data/{provider}/{dataset}/{id}/ to DataApiV1Sdk#64

Merged
oleksii-symon-corva-ai merged 24 commits intofeature/api20from
feature/dc-3567_add-replace-document-to-data-sdk
Jun 7, 2022
Merged

DC-3567 Add PUT data/{provider}/{dataset}/{id}/ to DataApiV1Sdk#64
oleksii-symon-corva-ai merged 24 commits intofeature/api20from
feature/dc-3567_add-replace-document-to-data-sdk

Conversation

@oleksii-symon-corva-ai
Copy link
Copy Markdown
Contributor

Rationale

Users need convenient way to access PUT data/{provider}/{dataset}/{id}/ data API endpoint.

Changes

Added PUT data/{provider}/{dataset}/{id}/ to DataApiV1Sdk.

JIRA ticket

TODO

  • Update CHANGELOG.md

Comment thread src/corva/api_adapter.py
Updated document.
"""

response = self.http.put(url=f"data/{provider}/{dataset}/{id_}/", json=document)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

is it technically possible for one company provide company name of another company and replace their document?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is regulated by permissions of the company making the request. As far as I know company A can request access to read some dataset of company B.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

so, it should be technically possible within the sdk and "permission regulating" part is in place in data-api. Correct?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Correct

Base automatically changed from feature/dc-3564_add-post-documents to feature/api20 May 23, 2022 12:33
…t-to-data-sdk

# Conflicts:
#	setup.cfg
#	src/corva/api_adapter.py
#	tests/integration/test_api.py
@oleksii-symon-corva-ai
Copy link
Copy Markdown
Contributor Author

@ville @corva-alex-s @tsilevych please review

@oleksii-symon-corva-ai
Copy link
Copy Markdown
Contributor Author

@ville @corva-alex-s @tsilevych @finomayato please review

@oleksii-symon-corva-ai oleksii-symon-corva-ai merged commit 614b36b into feature/api20 Jun 7, 2022
@oleksii-symon-corva-ai oleksii-symon-corva-ai deleted the feature/dc-3567_add-replace-document-to-data-sdk branch June 7, 2022 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants