FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
130 stars 26 forks source link

DataTypes not working on Cloud Functions #4784

Closed geret1 closed 6 days ago

geret1 commented 3 weeks ago

Can we access your project?

Current Behavior

I've tried to use a DataType as a parameter into a cloud function with a validation error on runtime.

Expected Behavior

Accept DataTypes (proper mapping validation) or remove it from accepted parameters.

Steps to Reproduce

  1. Create a DataType.
  2. Create a CloudFunction.
  3. Pasa the DataType as CloudFunction.
  4. Run

Reproducible from Blank

Bug Report Code (Required)

IT4kz/Ll8ZNIvulA187pbfowtDg7Q1g/TL03pu0bFEggGLbrBIYMaePedk1CTbSgTVFbKEWLsGMd08Lsjvz1EfFdBxGbGqZR+LVcVTyXJVO/aoTSCKmwXURCTJtMGBWD5LaNoCJ5JbdhSloB2DmICty8aDLvJo/7Zwh9f6PHaOI=

Visual documentation

Screenshot 2024-10-30 at 17 09 44

Environment

- FlutterFlow version: FF latest
- Platform:Web, MacOs Desktop
- Browser name and version: Chrome (latest)
- Operating system and version affected: OS X Sonoma 14.5 (23F79)

Additional Information

No response

geret1 commented 3 weeks ago

Switching from DataTypes to JSON solve the issue because at cloud function level FF is considering DataTypes as dynamic and that's the main error. That's the main purpose of DataTypes avoid dynamic.

Alezanello commented 3 weeks ago

Hello!

You’re absolutely correct; this is the expected behavior when using Cloud Functions with the DataType setting. To send a JSON, please refer to our documentation for more examples and guidance: Cloud Functions Documentation.

image.png

Thank you!

geret1 commented 2 weeks ago

Maybe this is the most stupid question ever but how is DataType reachable and selectable while defining arguments in cloud functions?

Please review it because this is the bug. Users can expect that FF map datatypes as serializable map.

github-actions[bot] commented 1 week ago

This issue is stale because it has been open for 7 days with no activity. If there are no further updates, a team member will close the issue.

geret1 commented 6 days ago

Close ticket due to lack of support.