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

SchemaEditor behind a feature flag #5564

Merged
merged 4 commits into from
Oct 26, 2022
Merged

Conversation

antgamdia
Copy link
Contributor

Description of the change

As per the discussion in #5530, this PR is adding a featureFlags.schemaEditor flag to enable the schema editor for those users who really want it.

Benefits

The schema editor will be available, but only if really needed.

Possible drawbacks

It is a work-in-progress feature until we also save the schema or use in the backend.

Applicable issues

Additional information

I've fixed some typos here as well.

Signed-off-by: Antonio Gamez Diaz <[email protected]>
Copy link
Contributor

@absoludity absoludity left a comment

Choose a reason for hiding this comment

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

Thanks for separating it out (and doing the typo drive-by cleanups)!

version: 11.0.2-dev1
version: 11.1.0-dev0
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's see who gets there first (you and Rafa are both updating in your PRs :) ).

@@ -43,7 +43,7 @@ beforeEach(() => {
});

afterEach(() => {
actions.kube = { ...kubeaActions };
actions.kube = { ...kubeActions };
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for the cleanup.

operators: false
## @param featureFlags.schemaEditor Enable a visual editor for customizing the package schemas
##
schemaEditor: false
Copy link
Contributor

Choose a reason for hiding this comment

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

Fine either way, just wondering if there may be other options for the schemaEditor in the future. If so, we may want to give it structure (schemaEditor.enabled: true so other options are possible).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Mmm, good point. I don't know, perhaps yes, there might be more options, but this would mean this feature is no longer "in development", but is something more "stable".
I'd rather keep it under a feature flag for now, so that we can perform backward incompatible changes if needed in the future.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh sorry - I wasn't proposing moving it from featureFlags, but just giving it structure rather than a bool (ie. the full path would be featureFlags.schemaEditor.enabled = true).

But fine either way, it's in development anyway :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ahhh, got it, got it. I didn't get your point :P Then, yes, it could be a good idea; I can perform the changes in the main #5530 PR

@antgamdia antgamdia merged commit 0ab3d3a into 1-3535-customSchema Oct 26, 2022
@antgamdia antgamdia deleted the 7-featureFlag branch October 26, 2022 07:20
absoludity pushed a commit that referenced this pull request Feb 24, 2023
Bumps [axios](https://github.com/axios/axios) from 1.3.3 to 1.3.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/axios/axios/releases">axios's
releases</a>.</em></p>
<blockquote>
<h2>Release v1.3.4</h2>
<h2>Release notes:</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>blob:</strong> added a check to make sure the Blob class is
available in the browser's global scope; (<a
href="https://github-redirect.dependabot.com/axios/axios/issues/5548">#5548</a>)
(<a
href="https://github.com/axios/axios/commit/3772c8fe74112a56e3e9551f894d899bc3a9443a">3772c8f</a>)</li>
<li><strong>http:</strong> fixed regression bug when handling
synchronous errors inside the adapter; (<a
href="https://github-redirect.dependabot.com/axios/axios/issues/5564">#5564</a>)
(<a
href="https://github.com/axios/axios/commit/a3b246c9de5c3bc4b5a742e15add55b375479451">a3b246c</a>)</li>
</ul>
<h3>Contributors to this release</h3>
<ul>
<li><!-- raw HTML omitted --> <a
href="https://github.com/DigitalBrainJS" title="+38/-26
([#5564](axios/axios#5564) )">Dmitriy
Mozgovoy</a></li>
<li><!-- raw HTML omitted --> <a href="https://github.com/lcysgsg"
title="+4/-0 ([#5548](axios/axios#5548)
)">lcysgsg</a></li>
<li><!-- raw HTML omitted --> <a href="https://github.com/Cadienvan"
title="+3/-0 ([#5444](axios/axios#5444)
)">Michael Di Prisco</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/axios/axios/blob/v1.x/CHANGELOG.md">axios's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/axios/axios/compare/v1.3.3...v1.3.4">1.3.4</a>
(2023-02-22)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>blob:</strong> added a check to make sure the Blob class is
available in the browser's global scope; (<a
href="https://github-redirect.dependabot.com/axios/axios/issues/5548">#5548</a>)
(<a
href="https://github.com/axios/axios/commit/3772c8fe74112a56e3e9551f894d899bc3a9443a">3772c8f</a>)</li>
<li><strong>http:</strong> fixed regression bug when handling
synchronous errors inside the adapter; (<a
href="https://github-redirect.dependabot.com/axios/axios/issues/5564">#5564</a>)
(<a
href="https://github.com/axios/axios/commit/a3b246c9de5c3bc4b5a742e15add55b375479451">a3b246c</a>)</li>
</ul>
<h3>Contributors to this release</h3>
<ul>
<li><!-- raw HTML omitted --> <a
href="https://github.com/DigitalBrainJS" title="+38/-26
([#5564](axios/axios#5564) )">Dmitriy
Mozgovoy</a></li>
<li><!-- raw HTML omitted --> <a href="https://github.com/lcysgsg"
title="+4/-0 ([#5548](axios/axios#5548)
)">lcysgsg</a></li>
<li><!-- raw HTML omitted --> <a href="https://github.com/Cadienvan"
title="+3/-0 ([#5444](axios/axios#5444)
)">Michael Di Prisco</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/axios/axios/commit/2e70cecda42993e1153248f0f96715c3c55f7f39"><code>2e70cec</code></a>
chore(release): v1.3.4 (<a
href="https://github-redirect.dependabot.com/axios/axios/issues/5565">#5565</a>)</li>
<li><a
href="https://github.com/axios/axios/commit/cbe2de60d3c9f494b4f5996632107d7a3a93abf1"><code>cbe2de6</code></a>
chore(ci): remove team-reviewers config; (<a
href="https://github-redirect.dependabot.com/axios/axios/issues/5566">#5566</a>)</li>
<li><a
href="https://github.com/axios/axios/commit/2b1fc73600f28028499aa08c7baff980da10b504"><code>2b1fc73</code></a>
chore(docs): added missing config.transport doc (<a
href="https://github-redirect.dependabot.com/axios/axios/issues/5444">#5444</a>)</li>
<li><a
href="https://github.com/axios/axios/commit/3772c8fe74112a56e3e9551f894d899bc3a9443a"><code>3772c8f</code></a>
fix(blob): added a check to make sure the Blob class is available in the
brow...</li>
<li><a
href="https://github.com/axios/axios/commit/a3b246c9de5c3bc4b5a742e15add55b375479451"><code>a3b246c</code></a>
fix(http): fixed regression bug when handling synchronous errors inside
the a...</li>
<li>See full diff in <a
href="https://github.com/axios/axios/compare/v1.3.3...v1.3.4">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=axios&package-manager=npm_and_yarn&previous-version=1.3.3&new-version=1.3.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
absoludity pushed a commit that referenced this pull request Mar 16, 2023
Bumps [axios](https://github.com/axios/axios) from 1.3.3 to 1.3.4.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/axios/axios/releases">axios's
releases</a>.</em></p>
<blockquote>
<h2>Release v1.3.4</h2>
<h2>Release notes:</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>blob:</strong> added a check to make sure the Blob class is
available in the browser's global scope; (<a
href="https://redirect.github.com/axios/axios/issues/5548">#5548</a>)
(<a
href="https://github.com/axios/axios/commit/3772c8fe74112a56e3e9551f894d899bc3a9443a">3772c8f</a>)</li>
<li><strong>http:</strong> fixed regression bug when handling
synchronous errors inside the adapter; (<a
href="https://redirect.github.com/axios/axios/issues/5564">#5564</a>)
(<a
href="https://github.com/axios/axios/commit/a3b246c9de5c3bc4b5a742e15add55b375479451">a3b246c</a>)</li>
</ul>
<h3>Contributors to this release</h3>
<ul>
<li><!-- raw HTML omitted --> <a
href="https://github.com/DigitalBrainJS" title="+38/-26
([#5564](axios/axios#5564) )">Dmitriy
Mozgovoy</a></li>
<li><!-- raw HTML omitted --> <a href="https://github.com/lcysgsg"
title="+4/-0 ([#5548](axios/axios#5548)
)">lcysgsg</a></li>
<li><!-- raw HTML omitted --> <a href="https://github.com/Cadienvan"
title="+3/-0 ([#5444](axios/axios#5444)
)">Michael Di Prisco</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/axios/axios/blob/v1.x/CHANGELOG.md">axios's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/axios/axios/compare/v1.3.3...v1.3.4">1.3.4</a>
(2023-02-22)</h2>
<h3>Bug Fixes</h3>
<ul>
<li><strong>blob:</strong> added a check to make sure the Blob class is
available in the browser's global scope; (<a
href="https://redirect.github.com/axios/axios/issues/5548">#5548</a>)
(<a
href="https://github.com/axios/axios/commit/3772c8fe74112a56e3e9551f894d899bc3a9443a">3772c8f</a>)</li>
<li><strong>http:</strong> fixed regression bug when handling
synchronous errors inside the adapter; (<a
href="https://redirect.github.com/axios/axios/issues/5564">#5564</a>)
(<a
href="https://github.com/axios/axios/commit/a3b246c9de5c3bc4b5a742e15add55b375479451">a3b246c</a>)</li>
</ul>
<h3>Contributors to this release</h3>
<ul>
<li><!-- raw HTML omitted --> <a
href="https://github.com/DigitalBrainJS" title="+38/-26
([#5564](axios/axios#5564) )">Dmitriy
Mozgovoy</a></li>
<li><!-- raw HTML omitted --> <a href="https://github.com/lcysgsg"
title="+4/-0 ([#5548](axios/axios#5548)
)">lcysgsg</a></li>
<li><!-- raw HTML omitted --> <a href="https://github.com/Cadienvan"
title="+3/-0 ([#5444](axios/axios#5444)
)">Michael Di Prisco</a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/axios/axios/commit/2e70cecda42993e1153248f0f96715c3c55f7f39"><code>2e70cec</code></a>
chore(release): v1.3.4 (<a
href="https://redirect.github.com/axios/axios/issues/5565">#5565</a>)</li>
<li><a
href="https://github.com/axios/axios/commit/cbe2de60d3c9f494b4f5996632107d7a3a93abf1"><code>cbe2de6</code></a>
chore(ci): remove team-reviewers config; (<a
href="https://redirect.github.com/axios/axios/issues/5566">#5566</a>)</li>
<li><a
href="https://github.com/axios/axios/commit/2b1fc73600f28028499aa08c7baff980da10b504"><code>2b1fc73</code></a>
chore(docs): added missing config.transport doc (<a
href="https://redirect.github.com/axios/axios/issues/5444">#5444</a>)</li>
<li><a
href="https://github.com/axios/axios/commit/3772c8fe74112a56e3e9551f894d899bc3a9443a"><code>3772c8f</code></a>
fix(blob): added a check to make sure the Blob class is available in the
brow...</li>
<li><a
href="https://github.com/axios/axios/commit/a3b246c9de5c3bc4b5a742e15add55b375479451"><code>a3b246c</code></a>
fix(http): fixed regression bug when handling synchronous errors inside
the a...</li>
<li>See full diff in <a
href="https://github.com/axios/axios/compare/v1.3.3...v1.3.4">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=axios&package-manager=npm_and_yarn&previous-version=1.3.3&new-version=1.3.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants