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

Bugfixes #595 and #587 #598

Merged
merged 2 commits into from
Jul 22, 2024
Merged

Bugfixes #595 and #587 #598

merged 2 commits into from
Jul 22, 2024

Conversation

lunaticusgreen
Copy link
Collaborator

@lunaticusgreen lunaticusgreen commented Jul 18, 2024

fix #595
fix #587

@@ -14,6 +14,10 @@ jsonData, onSwitchToggle, onFieldChange, externalProps

useEffect(() => {
const doRequest = async () => {
if (!jsonData.dataSourceUrl.startsWith('http://') && !jsonData.dataSourceUrl.startsWith('https://')) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

this is wrong fix IMHO, change approach

I requested check options only after press "Save & Test"

for example, if you press "use CORS" or "use POST"
and don't press "Save & Test" nothing shall happen

do you will make request for every press button in any control?
password for example?
username?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@Slach Form itself works correctly and doesn't send checks before we perform save and test, the issue happens because we're fetching information for default fields:

image

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

IMHO this solution is the correct one for a situation like this

Copy link
Collaborator

Choose a reason for hiding this comment

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

@lunaticusgreen
wrong behavior still not fixed
image

look detailed to
#587

@Slach Slach merged commit d2edcc4 into master Jul 22, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants