-
Notifications
You must be signed in to change notification settings - Fork 27
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
Link Tables / Relational column field #172
Comments
Hi, thanks for your issue. |
amazing to hear this! while I am not able to support you code-wise, I have a use-case ready and I am happy to support you as a beta tester and provide feedback. is there any ETA on the v0.5? I saw that v1 is estamated for end of june, does it mean v0.5 will be available earlier? I am really excited! |
I add some new features and fix bugs over the time an release it as 0.x releases. The over all roadmap can be found as a github project. The detailed planning as milestones, but that's a lot dynamic in there... 🙃 So, yes there will be some releases before the hopefully absolute stable 1.0 release. Testing is welcome. Thx! |
Merging of #375 for the #234 use case brought the ability to link to any Nextcloud resource that exposes a search provider. Could this mean in return, that Tables should implement one for itself, and it will immediately be able to link to a table? Or would we rather want to link to selected columns, as presented in the OP? Then we could retitle this one a bit to *Link columns between tables", or: "Create table from table" The other use case could be to reference (multiple) items from a certain table in a column, similar to how we reference other resources in #234. |
@almereyda I think we have two different use cases here.
|
@almereyda Thanks for clarification. I agree, we have to different use cases here. The first is not yet implemented and will bring some linking of data per row between tables. So an order in a table "orders" can refer to a customer from the table "customers" or whatever. The second use case is now merged, but not yet shipped, about linking (means giving a route to external resources) resources what we now within our nextcloud or as plain url for whatever. We don't want to reinvent the wheel, so we reuse the search logic and so we provide all the resources that are provided via the search logic. This includes the tables itself, but only the tables and hopefully upcoming also the views for tables. No rows. That's it. |
Thank you for the clarifications and confirmations! |
@juliushaertl - this is probably one of the most complex Feature requests at the moment, but for us it is a must have, before we can start using tables app in our work routines. this has been moved from milestone to milestone and at the moment it is not yet assigned to any milestone anymore. would it be possible for you to provide some insights on the internal progress / roadmap regarding this idea? |
@juliushaertl @datenangebot Although I realise this is not an easy-to-implement enhancement, but it would indeed be a great feature. I'm not suggesting to build a own referential database system, for those there are better options available (outside of the Nextcloud framework), but for a 'simple' application as the movie app OP has given as example, or a student, classes and grades internal app (table1 : student information, table 2 : available classes, table 3 : student (link), class (link), grade. ) this would be a great solution. So is there any idea when this would become a milestone target? |
@nextcloud/designers this was picked for 31 |
This is not fully specified yet on how we want to approach it. My first though would be to introduce a new column type for relation to another row or multiple rows.
Some example use cases:
Open questions:
We should come up with a proper mockup together with the design team about this and then discuss how this can be technically implemented. |
I would like to add one more use case, that is probably the most used in the end. |
Good morning. Can you tell me what the further planning looks like? |
I'm gonna start working on this. Here's how I imagine it to look:
Hope this all makes sense! |
Hi, What you decscribe probably makes sense, but to be honest I am not completely getting your approach.Therefore I woul like to challenge it. Step 1) For the example: Let's say I add the new Column "movie title" from the table "MOVIES" to the table "COMMENTS" and call it "movie link". Step 2) This makes sense, but we will need another feature: When creating columns we need to be able to specify "no duplicates allowed" just to avoid that in "MOVIES" there are multiple movies witht the same name. - technically possible, but it will confuse users. (i created a ticket for this #1566) Step 3) Overall) I guess your approach in the backend is based on internal Row IDs that means technically it is a 1:1 relation all the time. But this will cause problems. We need to keep in mind that we will have 1:N relationships and the user wants to aggregate the values. - E.g. 1 movie has N comments. Now i want the link column to show count(comments) or avg(rating). But this is probably a feature for views? Hope my thoughts are helpful. |
@xbluemonkx your feedback makes sense in terms of naming things. Yes, it should be called "linked column" or "Label Column" or somerhing like that. What i dont understand is your critique on the relational approach:
The real problem Maybe there can be the option to "expand all" columns of a linked table into the current view so that not only the "default column" is visible, but all columns and their respective values. That is all I wanted to say for now. edit: typos |
@Logianer you are completely right. The ticket has a more technical focus while I am wearing the user-glasses. Technically: your approach sounds good.
Edit: One more thought on N:M - I Aggree with you that this is already technical possible with the suggested solution. But from user-perspective this is pretty messy. E.g. if you have two tables "MOVIES" and "ACTORS" with the current approach you will have a separate table "ACTORS-MOVIES" where you have to maintain all the information of which actor was in which movie (or vice versa). I think it would be much mor comfortable if you could specify if a a linked column is allows single- oder multi-link (Step 1). And then you could select one ore more values/links (Step 3). - But this means that you would have to choose a different technical approach and let the table app handle the linking-table for the user. - sorry, just brainstorming to avoid future technical dead-ends. Edit2: Another thought on a another usecase when it comes to re-presentation: will it be possible to show "secondary" columns in the vies? e.g. I link to "COMMENTS" to "MOVIES". Now i want to have a view that shows the comment and the movie ("primary column" - link) but although the year the movie was released and the studio that made the movie ("seconday columns") |
Hi @enjeck, |
@ionoci It's not fully implemented yet. Still working on it! You'll know when it's done since this issue would get closed 😀 |
@enjeck 👍 Whenever you need a tester I'll be available 😀 |
It would be amazing if we coul activate a Key-Field in a table and re-use that key field in a second table.
Here is an example use-case:
Table A: List of Movies
-- Fields: Name, Year, Category, etc.
-- Key Field: Name
Table B: Comments
-- Fields: Name (From Table A), Rating, Comment
That would be amazing because, than you could add a Link in Table A that says "show comments" that links to Table B that is Pre-Filtered (#171) for the Movie that you want to see the comments for.
Long term goal would be to pre-aggregate the informations from Table B in Table A. So instead of having a column with a link that says "show comments" we could have a column that says "average rating" or "number of comments".
The text was updated successfully, but these errors were encountered: