Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #7362 - Update org create dynflow #4642

Merged
merged 1 commit into from Sep 15, 2014
Merged

Conversation

parthaa
Copy link
Contributor

@parthaa parthaa commented Sep 5, 2014

Moved it to follow org destroy model. Removed the create orchestration off
sync_action and made the controllers use the orchestrated action
directly. Needed this for tests related to issue #6946 to work.

Also updated unit tests to deal with this change.

@ehelms
Copy link
Member

ehelms commented Sep 9, 2014

@parthaa looks like this needs a rebase, I'll attempt to test it once you do

@parthaa
Copy link
Contributor Author

parthaa commented Sep 9, 2014

@ehelms rebased

self.organization.reload #must reload organization, otherwise old name is saved
self.organization.update_index
#self.organization.reload #must reload organization, otherwise old name is saved
#self.organization.update_index
Copy link
Member

Choose a reason for hiding this comment

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

Remove?

@ehelms
Copy link
Member

ehelms commented Sep 9, 2014

I attempted, through the UI to create an org with the following:

Name: Bvlah
Label: A)SDA)SOAS|[[][

And got this in the UI:

PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block : SELECT 1 AS one FROM "taxonomies" WHERE (LOWER("taxonomies"."name") = LOWER('BVlah') AND "taxonomies"."ancestry" IS NULL) LIMIT 1

@parthaa parthaa force-pushed the new-org branch 3 times, most recently from 6c8ddc1 to 7116397 Compare September 9, 2014 22:04
@parthaa
Copy link
Contributor Author

parthaa commented Sep 9, 2014

@ehelms try now

@ehelms
Copy link
Member

ehelms commented Sep 9, 2014

[test]

@parthaa
Copy link
Contributor Author

parthaa commented Sep 10, 2014

[test]

1 similar comment
@ehelms
Copy link
Member

ehelms commented Sep 11, 2014

[test]


sequence do
if ::Katello.config.use_cp
cp_create = plan_action(Candlepin::Owner::Create,
label: organization.label,
name: organization.name)

plan_action(Environment::LibraryCreate, organization.library)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this action inside the Katello.config.use_cp condition?

Moved it to follow org destroy model. Removed the create orchestration off
 sync_action and made the controllers use the orchestrated action
directly. Needed this for tests related to issue Katello#6946 to work.

Also updated unit tests to deal with this change.

Also removed the unused org elastic search bindings

more

more
@ehelms
Copy link
Member

ehelms commented Sep 15, 2014

ACK

parthaa added a commit that referenced this pull request Sep 15, 2014
Fixes #7362 - Update org create dynflow
@parthaa parthaa merged commit cec576e into Katello:master Sep 15, 2014
@parthaa parthaa deleted the new-org branch September 15, 2014 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants