Skip to content

Conversation

@vincbeck
Copy link
Contributor

Add team as column to list variable and list connection pages. I add it only if the multi-team mode is enabled.

Plus, I found out several bugs when I was testing edit variable and connection. I fix these bugs as part of this PR as well.


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@vincbeck vincbeck force-pushed the vincbeck/fix_mt_selector branch from 14509e5 to 79ea3cd Compare January 26, 2026 15:08
@vincbeck vincbeck merged commit 7c1b019 into apache:main Jan 26, 2026
243 of 246 checks passed
@vincbeck vincbeck deleted the vincbeck/fix_mt_selector branch January 26, 2026 17:34
Comment on lines +130 to +135
if (multiTeam) {
columns.splice(6, 0, {
accessorKey: "team_name",
header: translate("columns.team"),
});
}
Copy link
Member

@pierrejeambrun pierrejeambrun Jan 27, 2026

Choose a reason for hiding this comment

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

Thanks for the PR.

We tend to never mutate objects because react diffing algorithm will compare references and not render the update if the object was mutated in place.

This is why you see a lot of:

const newArray = [...oldArray, ,newItem]

Here we are outside of a react component so it should be fine. (a new columns object is created on every render anyway)

Copy link
Member

@pierrejeambrun pierrejeambrun Jan 27, 2026

Choose a reason for hiding this comment

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

#61123 Small adjustment so people do not copy/past this by mistake. (even if it's fine in this current form it could easily bait someone working on a similar component)

shreyas-dev pushed a commit to shreyas-dev/airflow that referenced this pull request Jan 29, 2026
shashbha14 pushed a commit to shashbha14/airflow that referenced this pull request Feb 2, 2026
jason810496 pushed a commit to abhijeets25012-tech/airflow that referenced this pull request Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:translations area:UI Related to UI/UX. For Frontend Developers. translation:default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants