legend-studio icon indicating copy to clipboard operation
legend-studio copied to clipboard

Feature request: Support editing of derived properties in `graphFetch`

Open gayathrir11 opened this issue 3 years ago • 0 comments
trafficstars

Similar requests

  • [X] I have searched and found no existing similar requests

How are you using Studio?

Legend Studio

What problems are you trying to solve?

When users try to drag and drop any derived property to the graphFetch panel we don't auto populate any parameter to the state we are building. Right now users are supposed to go to the text mode and manually add a parameter to the property they added to the fetch structure and even if they go back to form mode there is no way for them to edit that parameter.

Describe the solution you would like to see implemented

Pass the parameter to the derived property user drag and dropped while building the query builder state and also provide a way for the users to edit the parameters in form mode.

Model Data

###Relational
Database my::db
(
  Table PersonTable
  (
    NAME CHAR(200),
    FIRMID INTEGER
  )
  Table FirmTable
  (
    FIRMNAME CHAR(200),
    ID INTEGER
  )

  Join Firm_Person(PersonTable.FIRMID = FirmTable.ID)
)


###Pure
Class my::Firm
{
  legalName: String[1];
  id: Integer[1];
  derivedProp() {$this.legalName}: String[1];
}


###Mapping
Mapping my::map
(
  *my::Firm: Relational
  {
    ~mainTable [my::db]FirmTable
    legalName: [my::db]FirmTable.FIRMNAME,
    id: [my::db]FirmTable.ID
  }
)


###Runtime
Runtime my::runtime
{
  mappings:
  [
    my::map
  ];
}

Describe alternatives you have considered

No response

Documentation, Design, Adoption, Migration Strategy

No response

Contribution

  • [ ] I would like to work on this feature

gayathrir11 avatar May 31 '22 14:05 gayathrir11