Code Monkey home page Code Monkey logo

Comments (8)

dsandip avatar dsandip commented on March 28, 2024

@nukinuki FYI

from graphql-engine.

dsandip avatar dsandip commented on March 28, 2024

Console wireframes

  1. Option to rename table name and column name in the Modify tab of a table:

edit-table-column-name-1

  1. In-place edit for table name:

edit-table-column-name-2

  1. Option to edit relationship name:
    edit-relationship-name-1

  2. In-place edit for relationship name:

edit-relationship-name-2

@shahidhk @rikinsk please take a look at this. I am unsure about whether the option to edit the table name in 1 above is to be shown in the modify tab alone or in all tabs. I would prefer to limit it to the first option.

from graphql-engine.

dsandip avatar dsandip commented on March 28, 2024

From @rikinsk (who has requested a chat with him before working on the frontend) - change the Remove button to the style used for columns i.e. call it Edit. Clicking on this button gives you 3 options: Save, Cancel and Remove.

from graphql-engine.

shahidhk avatar shahidhk commented on March 28, 2024

Editing the table name can go inside the Modify tab.

from graphql-engine.

tirumaraiselvan avatar tirumaraiselvan commented on March 28, 2024

Also needs to update event trigger metadata. @rakeshkky

from graphql-engine.

nolandg avatar nolandg commented on March 28, 2024

Can anyone explain how this helps in deleting columns? The "can't delete column because of permissions" links here but...? Is the only way to delete a column to through all the permissions for all rows removing that column first? I have 32 boxes to click then... :-(

from graphql-engine.

rikinsk avatar rikinsk commented on March 28, 2024

@nolandg We are working on improving the console experience for this. It being tracked in #1593. As a workaround till then you can drop the column via SQL in the RawSQL tab using ALTER TABLE <table> DROP <column> statement and checking the Cascade metadata checkbox. This will drop all permissions depending on the given column. Note that for row level permissions the entire permission will be dropped and not just clause containing the column

from graphql-engine.

Rigel772 avatar Rigel772 commented on March 28, 2024

After I use : ALTER TABLE <table> DROP <column> statement and checking the Cascade metadata checkbox.'
I got error:

SQL Execution Failed
source with name "default" does not exist

(in hasura console 2.8.3 running from CLI 2.8.3)

from graphql-engine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.