Skip to content

Data extensions editor: Implement "Hide modeled APIs" checkbox and make it the default#2651

Merged
shati-patel merged 1 commit intomainfrom
shati-patel/hide-modeled-apis
Jul 27, 2023
Merged

Data extensions editor: Implement "Hide modeled APIs" checkbox and make it the default#2651
shati-patel merged 1 commit intomainfrom
shati-patel/hide-modeled-apis

Conversation

@shati-patel
Copy link
Copy Markdown
Contributor

Makes the "Hide modeled APIs" checkbox actually hide modeled APIs from the view! ✅ (With help from @robertbrignull 🙏🏽)
image

See internal issue for more details 🔍

Checklist

N/A: Internal only 🐄

  • CHANGELOG.md has been updated to incorporate all user visible changes made by this pull request.
  • Issues have been created for any UI or other user-facing changes made by this pull request.
  • [Maintainers only] If this pull request makes user-facing changes that require documentation changes, open a corresponding docs pull request in the github/codeql repo and add the ready-for-doc-review label there.

@shati-patel shati-patel requested a review from a team as a code owner July 27, 2023 14:41
Copy link
Copy Markdown
Contributor

@robertbrignull robertbrignull left a comment

Choose a reason for hiding this comment

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

LGTM, but I did help pair on it. Feel free to get another opinion if you want one.

One minor comment on naming, which you could ignore or go with a different name if you like.

});
}, [viewState?.mode]);

const onHideModeledApis = useCallback(() => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

To be picky (sorry I didn't mention this while pairing) and to fit in with conventions, I believe we should call this handleHideModeledApisChanged or something like that. Calling the function itself handleX is apparently the standard convention, especially when created using useCallback.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks! [As discussed offline, I'll leave the name as-is for now since the rest of this file also doesn't follow the handleXXX convention 😅 ]

Copy link
Copy Markdown
Contributor

@charisk charisk left a comment

Choose a reason for hiding this comment

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

LGTM!

@shati-patel shati-patel enabled auto-merge (squash) July 27, 2023 15:46
@shati-patel shati-patel merged commit 6e21706 into main Jul 27, 2023
@shati-patel shati-patel deleted the shati-patel/hide-modeled-apis branch July 27, 2023 15:49
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