Skip to content
This repository was archived by the owner on Jul 1, 2026. It is now read-only.

Ut uc#285

Open
vishalya wants to merge 6 commits into
blp_devfrom
ut_uc
Open

Ut uc#285
vishalya wants to merge 6 commits into
blp_devfrom
ut_uc

Conversation

@vishalya

Copy link
Copy Markdown

We use the username via http headers

@acarrera42 acarrera42 left a comment

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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?)

@vishalya vishalya Mar 16, 2018

Copy link
Copy Markdown
Author

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.

Comment thread app/controllers/signup_controller.rb Outdated
@@ -168,7 +171,14 @@ 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

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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
Copy Markdown
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.

Copy link
Copy Markdown

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
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants