Skip to content

Conversation

@vishalya
Copy link

We use the username via http headers

Copy link

@acarrera42 acarrera42 left a comment

Choose a reason for hiding this comment

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

Let's also run the full unit test suite on this PR as well to verify the unit tests have reduced on our CI boxes.

@organization = blp_org
else
subdomain = CartoDB.subdomainless_urls? ? request.host.to_s.gsub(".#{CartoDB.session_domain}", '') : CartoDB.subdomain_from_request(request)
@organization = ::Organization.where(name: subdomain).first if subdomain

Choose a reason for hiding this comment

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

What will happen if @organization is null (ie: if subdomain is null?)

Copy link
Author

@vishalya vishalya Mar 16, 2018

Choose a reason for hiding this comment

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

It's an invalid scenario for us, since we always need to have the global scenario, the other flow is for carto. @organization is setup in both flows, bloomberg vs non-bloomberg, so it should always be there.


def load_organization
#subdomain = CartoDB.subdomainless_urls? ? request.host.to_s.gsub(".#{CartoDB.session_domain}", '') : CartoDB.subdomain_from_request(request)
#@organization = ::Organization.where(name: subdomain).first if subdomain

Choose a reason for hiding this comment

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

Should we remove these comments since they are active below now?


blp_user_info = build_blp_user_info
blp_user_info.save
blp_user_info.save if blp_user_info.uuid

Choose a reason for hiding this comment

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

What's the impact if blp_user_info is not saved to the db?

Copy link
Author

Choose a reason for hiding this comment

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

If the user creation doesn't have the record during the creation, the user creation fails for bloomberg flow. From the tests, the carto flow should be good.

Choose a reason for hiding this comment

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

Should we add additional unit tests for the Bloomberg flow?

Copy link
Author

Choose a reason for hiding this comment

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

short answer is 'yes'. I will take it up as a next filler item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants