nomic-ai / nomic

Interact, analyze and structure massive text, image, embedding, audio and video datasets
https://atlas.nomic.ai
1.35k stars 173 forks source link

override default organization for enterprise users #325

Closed sojojo closed 3 months ago

sojojo commented 3 months ago

check to see whether user has membership to any enterprise organizations. if so, override the default organization with the first enterprise organization for which they are a member

https://linear.app/nomic/issue/NOM-1764/atlas-python-client-make-users-default-organization-set-to-first


:rocket: This description was created by Ellipsis for commit b00bce23a2e71181751e063bf591fa219544797d

Summary:

Added a check to set the default organization to the first enterprise organization if the user is a member of any, and updated version to 3.0.45.

Key points:


Generated with :heart: by ellipsis.dev

zanussbaum commented 3 months ago

LGTM other than fixing the failing tests. I think running make lint should fix this

also please update setup.py version by one

sojojo commented 3 months ago

Thanks for the tip, Zach! Looks like the updates pass the lint check and I've updated the version. I'll wait for the final CircleCI checks to complete

AndriyMulyar commented 3 months ago

Make the exposed key ends up in production first (or make it optional to exist in your checks here)

AndriyMulyar commented 3 months ago

E.g. check if a plan_type key exists first

sojojo commented 3 months ago

ah ok. The latest change should do the trick