FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
105 stars 18 forks source link

API Group Variables forced to send #3295

Open ryutosh opened 1 week ago

ryutosh commented 1 week ago

Can we access your project?

Current Behavior

In API Editor, Variables declared in Group are included in the request even if they are not used in Json.

There are 5 group variables

image

Use only 3 of them

image

All group variables send

image

This behavior is strange from the following two perspectives

  1. The description of Group Variables states that these are options that can be set in the UI builder. They are options, not forces. image

  2. Two global variables that were not declared in the JSON format included themselves in the root even though they were not included in the format. Structure is determined by the format, and placement in the root is not always correct.

Expected Behavior

As in description of Group Variables tooltip, Group Variables just shows on Builder UI, but not forced to appear unless they are explicitly written in format.

Steps to Reproduce

  1. Create API Group
  2. Create API inside 1
  3. Make ListView widget using 2
  4. Test

Reproducible from Blank

Bug Report Code (Required)

ITEehfKB35ZJpbwG1c7qcsJWiQMwJHI/auYvte5+d0shfJSrOu0HOuPeaktLYte9SmNcIWeajnEDwtWLud7pIMIoAzGCfoRxzr5XQQrjWkm6WoyxPZagX3NQL/FYBWHE1sOnhSJDKsVsci0Z3zqACPCdG3qCf9qOYwx5e6fDbOY=

Visual documentation

as in "Current Behavior" section.

Environment

- FlutterFlow version: 4.1.65+
- Platform: web
- Browser name and version: Chrome Version 126.0.6478.127 (Official Build) (arm64)
- Operating system and version affected: MacOS sonoma

Additional Information

No response

Alezanello commented 1 week ago

Hello!

Thank you for reaching out with your issues. I was unable to reproduce the problem in a blank project. In my test, the variables I set from the group did not include two of them in my format, and they were not sent to the API call.

image

Could you please try to reproduce this issue in a blank project and share the Bug Report Code with us? This will help us determine if the issue is specific to your project.

Best regards, Azanello

ryutosh commented 1 week ago

Hi @Alezanello I tried some case to reproduce. Please try in "Make Private" toggle ON.

Alezanello commented 1 week ago

@ryutosh Excellent! Let me try that and I'll get back to you shortly.

Alezanello commented 1 week ago

Hey! @ryutosh

I've got some news! I was able to replicate the issue when the API call is made as a private call. I will forward this to our engineering team so they can take a deeper look and find a way to prevent this from happening.

Thank you very much for bringing this issue to our attention, and I apologize for any inconvenience this may have caused in your current project. We appreciate your patience as the team works on fixing and updating this issue.

Best regards, Azanello