dosubot[bot] commented on issue #31397:
URL: https://github.com/apache/superset/issues/31397#issuecomment-2535216006

   <!-- Greeting -->
   Hey @Cinal! 👋 I'm here to help you with any bugs, questions, or contribution 
guidance while you wait for a human maintainer. Let's squash those bugs 
together!
   
   <!-- Answer -->
   The issue you're encountering seems to be related to the handling of the 
`map_label_colors` and `shared_label_colors` fields in the dashboard schema. 
These fields have specific expected data types and structures:
   
   - `map_label_colors` is expected to be a dictionary 
<sup>[[1]](https://github.com/apache/superset/blob/master/superset/dashboards/schemas.py)</sup>.
   - `shared_label_colors` is a custom field that should ultimately be a list 
of strings, enforced by the `_deserialize` method and the 
`enforceSharedLabelsColorsArray` function 
<sup>[[1]](https://github.com/apache/superset/blob/master/superset/dashboards/schemas.py)</sup><sup>[[2]](https://github.com/apache/superset/blob/master/superset-frontend/src/utils/colorScheme.ts)</sup>.
   
   The error messages you're seeing ("Unknown field" and "Not a valid mapping 
type") suggest that the payload being sent does not match these expected 
structures. This could be due to changes introduced in commit 
`90572be95adf3f2a92e53d0af53027d1d0ad0530`, which might have altered how these 
fields are processed or validated, although specific details about changes in 
that commit are not available.
   
   To address this issue, ensure that the payload includes these fields with 
the correct data types. If these fields are missing, you might need to update 
your code to include them with default values or ensure they are correctly 
formatted before sending the payload. Additionally, reviewing the changes 
between the commits mentioned might provide further insights into what 
adjustments are necessary to maintain compatibility.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   
   ---
   <sup>Help Dosu learn! Give it feedback: [Great 
Response](https://app.dosu.dev/response-feedback/3bb07795-1192-4f16-beef-39340d1b83d9?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/3bb07795-1192-4f16-beef-39340d1b83d9?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/3bb07795-1192-4f16-beef-39340d1b83d9?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/3bb07795-1192-4f16-beef-39340d1b83d9?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/3bb07795-1192-4f16-beef-39340d1b83d9?feedback_type=hallucination)
 | 
[Other](https://app.dosu.dev/response-feedback/3bb07795-1192-4f16-beef-39340d1b83d9?feedback_type=other)</sup>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to