PUT requests to /tablecolumninlineview/api/update/<id> fail
See original GitHub issueMaking a PUT request to the tablecolumninlineview api fails when not all required fields on the model are provided.
Expected results
Expect a 200 when providing a payload of {"description": description}
.
Actual results
Get a 500
{"error_details":{"column_name":["This field is required."]},"message":"Validation error","severity":"warning"}
How to reproduce the bug
- Create a dimension in superset
- Hit the API to change the dimension description
- Get an error
Note that when I include the column_name
field, this doesn’t fail. It seems like there’s an issue with merging the payload with the existing object, perhaps with the model or in FAB. I would expect to not need the column_name
field when making a PUT request if it already exists on the existing object
Environment
Repros on superset master, up to date versions of python and js
Checklist
Make sure these boxes are checked before submitting your issue - thank you!
- I have checked the superset logs for python stacktraces and included it here as text if there are any.
- I have reproduced the issue with at least the latest released version of superset.
- I have checked the issue tracker for the same issue and I haven’t found one similar.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
TableColumn (JavaFX 8) - Oracle Help Center
Creates a TableColumn with the text set to the provided string, with default cell factory, comparator, and onEditCommit implementation. Method Summary. All ...
Read more >Error with updating one table column with reference of two ...
I am using MS SQL Compact Query Analyzer. Image: Two Tables And Update Statement. To put it simple: Two Tables, TblCust and TblTemp...
Read more >Documentation: 15: UPDATE - PostgreSQL
UPDATE changes the values of the specified columns in all rows that ... UPDATE or DELETE on the row being moved will get...
Read more >MySQL 8.0 Reference Manual :: 13.2.17 UPDATE Statement
UPDATE is a DML statement that modifies rows in a table. An UPDATE statement can start with a WITH clause to define common...
Read more >Update tablecolumn - Microsoft Graph v1.0
Request body ; values, Json, Represents the raw values of the specified range. The data returned could be of type string, number, or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Issue-Label Bot is automatically applying the label
#bug
to this issue, with a confidence of 0.93. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.
This API seems not in use any more.