Skip to content

feat(hubble): push/pull user authentication#238

Merged
alaeddine-13 merged 2 commits into
mainfrom
feat-hubble-user-auth
Apr 5, 2022
Merged

feat(hubble): push/pull user authentication#238
alaeddine-13 merged 2 commits into
mainfrom
feat-hubble-user-auth

Conversation

@delgermurun

Copy link
Copy Markdown
Contributor

@codecov

codecov Bot commented Mar 29, 2022

Copy link
Copy Markdown

Codecov Report

Merging #238 (28e579f) into main (50c14b1) will increase coverage by 0.07%.
The diff coverage is 85.29%.

@@            Coverage Diff             @@
##             main     #238      +/-   ##
==========================================
+ Coverage   86.02%   86.09%   +0.07%     
==========================================
  Files         134      135       +1     
  Lines        6090     6129      +39     
==========================================
+ Hits         5239     5277      +38     
- Misses        851      852       +1     
Flag Coverage Δ
docarray 86.09% <85.29%> (+0.07%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
docarray/array/mixins/io/pushpull.py 86.73% <84.37%> (+2.52%) ⬆️
docarray/exceptions.py 100.00% <100.00%> (ø)
docarray/array/mixins/setitem.py 81.81% <0.00%> (ø)
docarray/math/ndarray.py 89.65% <0.00%> (+0.60%) ⬆️
docarray/document/__init__.py 77.77% <0.00%> (+4.09%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 50c14b1...28e579f. Read the comment docs.

Comment thread docarray/array/mixins/io/pushpull.py Outdated
Comment thread docarray/array/mixins/io/pushpull.py Outdated
Comment thread docarray/array/mixins/io/pushpull.py
Comment thread docarray/array/mixins/io/pushpull.py Outdated
Comment thread tests/unit/array/mixins/test_pushpull.py Outdated

@hanxiao hanxiao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

user journey needs redesign, right now token and id is so confusing

@delgermurun delgermurun force-pushed the feat-hubble-user-auth branch 3 times, most recently from 1d9a084 to ab8dfc8 Compare April 4, 2022 12:10

res = requests.post(
f'{_get_cloud_api()}/v2/rpc/da.push', data=gen(), headers=headers
f'{_get_cloud_api()}/v2/rpc/artifact.upload', data=gen(), headers=headers

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm just wondering here why the API endpoint was renamed from da.push to artifact.upload
Isn't artifact related to finetuner ?

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.

Not specifically related to finetuner. Under the hood, every types of storage will use Hub's artifact storage system.
Doesn't matter docarray, finetuner model, or anything else in the future.

@delgermurun delgermurun force-pushed the feat-hubble-user-auth branch from ab8dfc8 to 60e5784 Compare April 5, 2022 07:01
Comment thread docarray/array/mixins/io/pushpull.py Outdated
raise FileNotFoundError(
f'can not find `{token}` DocumentArray on the Cloud. Misspelled?'
json_res = response.json()
raise Exception(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
raise Exception(
raise ObjectNotFoundError(

and let's create a docarray/exceptions.py module and include such an error

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.

addressed

@delgermurun delgermurun force-pushed the feat-hubble-user-auth branch from 60e5784 to 3717d6e Compare April 5, 2022 08:40
@delgermurun delgermurun requested a review from alaeddine-13 April 5, 2022 08:41
@alaeddine-13 alaeddine-13 merged commit ab7aebd into main Apr 5, 2022
@alaeddine-13 alaeddine-13 deleted the feat-hubble-user-auth branch April 5, 2022 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants