-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor DB view descriptions #182
Conversation
We agreed in a personal meeting for the following changes:
@keckelt Please change the code accordingly and notify @lehnerchristian. Afterwards he will test the changes in different apps. |
@lehnerchristian @thinkh I changed the points we discussed, except:
The RankingViews only use the interface to get the column description,so using the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only two minor things. the rest looks good
TODO after merging: also merge dependent PRs where typings change |
Ah, jetzt wo ich die member von IViewDescription optional gemacht habe ist natürlich IDatabaseViewDesc keine richtige Erweiterung:
|
in which project do you get the error? I've checked your branch out in my local version of Ordino and I don't get any compile errors |
In Ordino, I have errors in the subclasses of ARankingView like: https://github.com/Caleydo/tdp_publicdb/blob/master/src/views/ACombinedDependentTable.ts#L77 I think we should change the return type of |
Return of {
"idType": null,
"columns": []
} New: {
"description": "",
"arguments": [
"query",
"query",
"species",
"column",
"limit",
"offset"
],
"query": "SELECT s as id, s as text FROM (SELECT distinct {column} AS s FROM tissue.tdp_tissue WHERE LOWER({column}) LIKE :query AND species = :species) ORDER BY {column} ASC LIMIT {limit} OFFSET {offset}",
"type": "helper",
"columns": [],
"name": "tissue_unique"
} |
Hi @lehnerchristian, I decided to not make the |
ok, thank you. I'll have a look |
sorry, I'll need to have a look at all projects, because this PR has some breaking changes. I talked to @thinkh and we're checking how we release it: a new major version + probably renaming of IViewDescription to IViewDesc |
I've checked this PR with several projects especially if there are some RankingViews returning only columns without IDTypes . I'll need to check some other projects, which I'm not involved in with some colleagues tomorrow and then I can hopefully merge this PR |
@dg-datavisyn will test this with his projects, too and then this change will be in the next release in 2 weeks in the meantime we'll merge this into develop after the release we'll create now. thank you for the changes and sorry that it took me so long, @keckelt 😉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've tested this PR with another project and it works for me. @thinkh , there are some comments to your comments
as soon as it's renamed as @thinkh suggested we'll merge it |
@lehnerchristian Done 🙂 |
closes #181