-
Notifications
You must be signed in to change notification settings - Fork 183
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
[RED-2366] Add CBP support to requested_tickets api/v2/users/:id/tickets/requested #582
Conversation
9051c87
to
cf35ad4
Compare
spec/macros/resource_macros.rb
Outdated
@@ -41,6 +41,7 @@ def it_should_be_creatable(options = {}) | |||
|
|||
VCR.use_cassette("#{described_class.to_s}_create_delete") do | |||
@creatable_object.destroy | |||
sleep(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A consideration, maybe not even for this PR:
if the object gets returned even after deletion, maybe it has an attribute deleted: true
or something we can check and make the test pass?
spec/macros/resource_macros.rb
Outdated
@@ -110,7 +114,7 @@ def it_should_be_deletable(options = {}) | |||
if options[:find] | |||
expect(obj.send(options[:find].first)).to eq(options[:find].last) | |||
else | |||
expect(obj).to be_nil | |||
expect(obj.nil? || !obj.active?).to eq(true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you explain what's going on here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you (@fbvilela), test if the random_string
fix works without this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Casper, it didn't work.
This change is because OrganizationField
is marked for deletion and returned with an active: false
. It eventually gets deleted for real. I will reach out to the team but as for our code change here, I might try to make this specific for the organization field class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will reach out to the team
Yeah this sounds like a bug to me, as discussed in slack.
make this specific for the organization field class
Yeah, if we keep this change, it should be specific to the case that is affected at least.
cf35ad4
to
9fd13ee
Compare
Description
Adding CBP support to this api endpoint
References
#>#581