question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PUT requests to /tablecolumninlineview/api/update/<id> fail

See original GitHub issue

Making 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

  1. Create a dimension in superset
  2. Hit the API to change the dimension description
  3. 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.

cc @john-bodley @dpgaspar

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
issue-label-bot[bot]commented, Sep 4, 2019

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.

0reactions
graceguo-supercatcommented, Mar 16, 2022

This API seems not in use any more.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found