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

fix: Org Browser refresh works for custom objects with a namespace #5403

Merged
merged 15 commits into from
Feb 9, 2024

Conversation

CristiCanizales
Copy link
Contributor

What does this PR do?

  • Fixes extractJsonObject() to handle right upon receiving a plain text
  • Fixes buildComponentsList() to consider namespace when there is one

What issues does this PR fix or reference?

@W-14983578@

Functionality Before

  • Couldn't refresh Custom Objects with a namespace
    image

Functionality After

  • Custom Objects with a namespace can be successfully refreshed

Copy link
Contributor

@peternhale peternhale left a comment

Choose a reason for hiding this comment

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

Questions for now.

@diyer
Copy link
Collaborator

diyer commented Feb 6, 2024

Thanks @CristiCanizales for fixing this !

const jsonString = str.substring(str.indexOf('{'), str.lastIndexOf('}') + 1);

return JSON.parse(jsonString);
const isJsonString = str.indexOf('{') !== -1 && str.lastIndexOf('}') !== -1;
Copy link
Contributor

Choose a reason for hiding this comment

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

@CristiCanizales would you some unit tests for this change?

@CristiCanizales CristiCanizales merged commit 32bdcc4 into develop Feb 9, 2024
12 checks passed
@CristiCanizales CristiCanizales deleted the cristi/org-browser-refresh branch February 9, 2024 22:42
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