Skip to content

refactor: update widget selection rules to exclude foreign key columns#1735

Merged
Artuomka merged 1 commit into
mainfrom
backend_identity_field_prompt
Apr 24, 2026
Merged

refactor: update widget selection rules to exclude foreign key columns#1735
Artuomka merged 1 commit into
mainfrom
backend_identity_field_prompt

Conversation

@Artuomka
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings April 24, 2026 12:27
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 24, 2026

Warning

Rate limit exceeded

@Artuomka has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 53 minutes and 51 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 53 minutes and 51 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 78abb6ed-1029-4dbc-85ae-56843ab32069

📥 Commits

Reviewing files that changed from the base of the PR and between 36d3ad8 and eca7bbd.

📒 Files selected for processing (1)
  • backend/src/entities/ai/ai.service.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch backend_identity_field_prompt

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the AI-generated table widget guidance and post-processing so that widgets are not created for columns that are actual foreign keys, relying on the system’s automatic foreign-key handling instead.

Changes:

  • Removed/updated prompt instructions so the AI is told not to generate widgets for columns listed under the table’s “Foreign Keys” section.
  • Added a foreign-key column filter in buildTableSettingsEntities to drop AI-returned widgets targeting FK columns before persisting settings.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Artuomka Artuomka merged commit 388bf32 into main Apr 24, 2026
21 of 22 checks passed
@Artuomka Artuomka deleted the backend_identity_field_prompt branch April 24, 2026 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants