Skip to content

Conversation

@mtrezza
Copy link
Member

@mtrezza mtrezza commented Dec 16, 2025

Summary by CodeRabbit

  • New Features
    • Added context menu options in the Data Browser to quickly access related records. Users can open related data from both the panel header and main header menus, making it easier to navigate connected records directly from context menus. The new items appear alongside existing menu options for faster data exploration and discovery.

✏️ Tip: You can customize this high-level summary in your review settings.

@parse-github-assistant
Copy link

parse-github-assistant bot commented Dec 16, 2025

🚀 Thanks for opening this pull request!

@parseplatformorg
Copy link
Contributor

parseplatformorg commented Dec 16, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@coderabbitai
Copy link

coderabbitai bot commented Dec 16, 2025

Warning

Rate limit exceeded

@mtrezza has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 24 minutes and 2 seconds before requesting another review.

⌛ 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.

📥 Commits

Reviewing files that changed from the base of the PR and between 84d81e1 and 0693117.

📒 Files selected for processing (1)
  • src/dashboard/Data/Browser/DataBrowser.react.js (2 hunks)
📝 Walkthrough

Walkthrough

Adds an internal helper method getRelatedObjectsMenuItemForPanel(objectId, pointerClassName) to DataBrowser to build a "Get related records from..." submenu by scanning schema pointer columns; the new menu is conditionally inserted into both the panel header and main header context menus.

Changes

Cohort / File(s) Change Summary
DataBrowser context menu enhancement
src/dashboard/Data/Browser/DataBrowser.react.js
Added internal method getRelatedObjectsMenuItemForPanel(objectId, pointerClassName) that collects pointer-columns matching a pointer class and builds a "Get related records from..." submenu. Integrated this submenu into the panel header context menu and the main header (panel) context menu, inserted before the existing Scripts submenu when available.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

  • Review schema traversal to ensure it correctly identifies columns with targetClass.
  • Verify constructed menu items call onPointerCmdClick with (related class, pointer id, field).
  • Confirm conditional insertion prevents undefined items and preserves existing menu order/behavior.

Possibly related PRs

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description check ⚠️ Warning The description is missing entirely; only the template checklist is present with no actual implementation details, approach, or issue reference provided. Add a detailed description including: the issue being solved (Closes: #issue_number), the approach taken to implement the feature, and any relevant context for reviewers.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: adding a related records context menu feature to the info panel header.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

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

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7f80915 and 8f8331c.

📒 Files selected for processing (1)
  • src/dashboard/Data/Browser/DataBrowser.react.js (2 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: mtrezza
Repo: parse-community/parse-dashboard PR: 0
File: :0-0
Timestamp: 2025-12-13T19:47:18.023Z
Learning: In Parse Dashboard DataBrowser, the panel header context menu uses the hardcoded 'objectId' field when filtering scripts via `getValidScripts` because the panel header represents the entire object, not a specific field. Field-specific script execution happens when right-clicking on individual table cells in BrowserCell.
📚 Learning: 2025-12-13T19:47:18.023Z
Learnt from: mtrezza
Repo: parse-community/parse-dashboard PR: 0
File: :0-0
Timestamp: 2025-12-13T19:47:18.023Z
Learning: In Parse Dashboard DataBrowser, the panel header context menu uses the hardcoded 'objectId' field when filtering scripts via `getValidScripts` because the panel header represents the entire object, not a specific field. Field-specific script execution happens when right-clicking on individual table cells in BrowserCell.

Applied to files:

  • src/dashboard/Data/Browser/DataBrowser.react.js
🧬 Code graph analysis (1)
src/dashboard/Data/Browser/DataBrowser.react.js (4)
Parse-Dashboard/app.js (3)
  • schema (709-709)
  • schema (771-771)
  • Parse (10-10)
src/lib/Filters.js (1)
  • schema (279-279)
src/lib/queryFromFilters.js (2)
  • schema (88-88)
  • field (141-141)
src/lib/tests/getFileName.test.js (1)
  • Parse (12-12)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Node 18
  • GitHub Check: Docker linux/amd64
🔇 Additional comments (1)
src/dashboard/Data/Browser/DataBrowser.react.js (1)

1034-1038: LGTM!

Clean integration of the related records menu item before the Scripts submenu. The conditional check ensures the menu item is only added when valid.

coderabbitai[bot]
coderabbitai bot previously approved these changes Dec 16, 2025
@mtrezza mtrezza merged commit 2623802 into parse-community:alpha Dec 16, 2025
12 checks passed
@mtrezza mtrezza deleted the feat/rel-rec branch December 16, 2025 14:34
parseplatformorg pushed a commit that referenced this pull request Dec 16, 2025
# [8.2.0-alpha.11](8.2.0-alpha.10...8.2.0-alpha.11) (2025-12-16)

### Features

* Add getting related records to context menu of info panel header ([#3083](#3083)) ([2623802](2623802))
@parseplatformorg
Copy link
Contributor

🎉 This change has been released in version 8.2.0-alpha.11

@parseplatformorg parseplatformorg added the state:released-alpha Released as alpha version label Dec 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

state:released-alpha Released as alpha version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants