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

[RED-2366] Add CBP support to requested_tickets api/v2/users/:id/tickets/requested #582

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

fbvilela
Copy link
Contributor

Description

Adding CBP support to this api endpoint

References

#>#581

@fbvilela fbvilela force-pushed the fvilela/requested_tickets branch 2 times, most recently from 9051c87 to cf35ad4 Compare September 1, 2024 07:36
@@ -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)
Copy link
Contributor

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?

@@ -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)
Copy link
Contributor

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?

Copy link

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?

Copy link
Contributor Author

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.

Copy link

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.

@fbvilela fbvilela marked this pull request as ready for review September 3, 2024 02:07
@fbvilela fbvilela requested a review from a team as a code owner September 3, 2024 02:07
@fbvilela fbvilela merged commit e42474b into master Sep 4, 2024
7 checks passed
@fbvilela fbvilela deleted the fvilela/requested_tickets branch September 4, 2024 03:09
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.

4 participants