Skip to content

Navigation Menu

Sign in
Sign up

feat: add relation column type - #2248

Merged
enjeck merged 3 commits into
main from
feature/add-relations-column-type
Jun 16, 2026
Merged

feat: add relation column type #2248
enjeck merged 3 commits into
main from
feature/add-relations-column-type

Conversation

@Koc

@Koc Koc commented Jan 9, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

This PR introduces a basic relation type. It allows to connect few tables together. We will store row id as a column value and display selected column as a label for this values. Closes #172.

✔️ Implemented

🔍 Column create/edit

image

🔍 Row create/edit via popup/inline

image

🔍 Row display in table/view + handle relation row removal

image image

🔍 Filter for view

image

🔍 Filter for rows

image image

🔍 Import/Export

image image

🚧 Pending (help welcomed):

  • Behat tests
  • Cypress tests?

❎ What is out of scope:

  • Lookup columns to add an extra columns from the related table to the current one. It will be handled separately in upcoming PR.

Aveyron-RetD, juliusknorr, SalvyTek, mstoffel-sag, enjeck, LexioJ, and AIlkiv reacted with rocket emoji
Koc force-pushed the feature/add-relations-column-type branch from c3f6a2d to fdd744e Compare January 15, 2026 17:44
Koc force-pushed the bugfix/fix-loading-of-large-tables branch from f792683 to f599f40 Compare January 15, 2026 19:21
Koc force-pushed the feature/add-relations-column-type branch 6 times, most recently from 92af03c to 0f9416b Compare January 16, 2026 00:28
Koc force-pushed the feature/add-relations-column-type branch 3 times, most recently from 6a4e073 to 5209182 Compare January 16, 2026 18:06
Koc changed the base branch from bugfix/fix-loading-of-large-tables to main January 16, 2026 18:06
Koc force-pushed the feature/add-relations-column-type branch 4 times, most recently from fb98364 to 198afa1 Compare January 16, 2026 18:43
Koc marked this pull request as ready for review January 16, 2026 19:12
Koc requested review from blizzz and enjeck as code owners January 16, 2026 19:12
Koc force-pushed the feature/add-relations-column-type branch from 198afa1 to ddc1bd1 Compare January 16, 2026 20:45
@juliusknorr juliusknorr added the enhancement New feature or request label Jan 21, 2026
Koc force-pushed the feature/add-relations-column-type branch 2 times, most recently from f34f8f9 to d406233 Compare January 25, 2026 12:47
Koc force-pushed the feature/add-relations-column-type branch 4 times, most recently from f092bad to 502b69b Compare February 12, 2026 23:24
Comment thread src/shared/components/ncTable/mixins/filter.js Outdated

@enjeck enjeck left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be nice to have tests to avoid regressions in the future

Koc reacted with thumbs up emoji
Koc force-pushed the feature/add-relations-column-type branch 3 times, most recently from b707106 to f3c29d8 Compare May 4, 2026 21:45

Koc commented May 4, 2026

Copy link
Copy Markdown
Contributor Author

@Aveyron-RetD here we go, without tooltip

image
Aveyron-RetD and enjeck reacted with heart emoji

Koc force-pushed the feature/add-relations-column-type branch 2 times, most recently from b426237 to 5752ee3 Compare May 7, 2026 14:09
Comment thread tests/integration/features/APIv2.feature Outdated
Koc force-pushed the feature/add-relations-column-type branch 5 times, most recently from 5287072 to 5ab7cee Compare June 6, 2026 23:55

Koc commented Jun 7, 2026

Copy link
Copy Markdown
Contributor Author

hey @enjeck @blizzz!

I've added Behat tests, please check. Is that enough to merge PR?

enjeck force-pushed the feature/add-relations-column-type branch 2 times, most recently from 43f8c6c to 5b58b04 Compare June 16, 2026 05:20
Koc and others added 3 commits June 16, 2026 07:25
Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
Signed-off-by: Kostiantyn Miakshyn <molodchick@gmail.com>
Signed-off-by: Enjeck C. <patrathewhiz@gmail.com>
enjeck force-pushed the feature/add-relations-column-type branch from c83c383 to 1bd767b Compare June 16, 2026 06:25

@enjeck enjeck left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much!

enjeck merged commit 7b1b385 into main Jun 16, 2026
75 checks passed
enjeck deleted the feature/add-relations-column-type branch June 16, 2026 06:57
@github-project-automation github-project-automation Bot moved this from 🏗️ In progress to ☑️ Done in 📝 Productivity team Jun 16, 2026

Copy link
Copy Markdown

H,
I have seen that this is part of the new release. - May I ask what exactly this offers now?

Is it possible to define "link" columns (columns that are avaible in to tables so if someone adds and entry in table A it is possible to use it in table B as a link?

Or is it more like: if i manually enter the same value in table A and table B it can be used as a link?

I am really curious about what / how this actually works from a user perspective

Koc commented Jul 25, 2026
edited
Loading

Copy link
Copy Markdown
Contributor Author

@xbluemonkx mate, sorry, but I didn't got what you mean. You can check screenshots from the PR description or even checkout latest version of the module, install it locally and test by yourself (and answer to your question 😉)

xbluemonkx reacted with thumbs up emoji

Aveyron-RetD commented Jul 27, 2026
edited
Loading

Copy link
Copy Markdown

@xbluemonkx i believe this is this feature #2271 ,that you want which will bring you lookup columns.
In this feature, there is only text field which works.

What you can do for the moment with this feature is for example an ordering table from an inventory table. You can have a table with all your references (A) and another table where you can order (B) when you create a relation column in table (B) you reference to a text field column in table A for example (Inventory name).

So by editing table A, you create new references, and they will appear as selection choices in table B.
The only downside they could be restricting your searches because the text field could be not enough for the user to recognize the inventory and this is where #2271 will come handy. It will fetch other results in table A on the same row and prefill cells depending on the text field chosen.

Am i right @Koc ?

xbluemonkx reacted with thumbs up emoji

Koc commented Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

yeah, you are pretty good explained how it works, thanx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@enjeck enjeck enjeck approved these changes
@blizzz blizzz Awaiting requested review from blizzz blizzz is a code owner
@samin-z samin-z Awaiting requested review from samin-z

Assignees

No one assigned

Labels

3. to review Waiting for reviews enhancement New feature or request

Projects

Archived in project

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Relational properties

AltStyle によって変換されたページ (->オリジナル) /