Fix Firestore rules validation for raphcon creation#41
Open
Fix Firestore rules validation for raphcon creation#41
Conversation
Co-authored-by: tujii <8914318+tujii@users.noreply.github.com>
Co-authored-by: tujii <8914318+tujii@users.noreply.github.com>
Co-authored-by: tujii <8914318+tujii@users.noreply.github.com>
Co-authored-by: tujii <8914318+tujii@users.noreply.github.com>
Co-authored-by: tujii <8914318+tujii@users.noreply.github.com>
Co-authored-by: tujii <8914318+tujii@users.noreply.github.com>
|
Visit the preview URL for this PR (updated for commit 53468d1): https://angryraphi--pr41-copilot-fix-firestor-leg0ew4e.web.app (expires Mon, 22 Dec 2025 23:49:40 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: a0d0f39c5de51b5f0e7b4994943c4eea410f181e |
Co-authored-by: tujii <8914318+tujii@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix Firestore permission error when adding raphcons
Fix Firestore rules validation for raphcon creation
Dec 15, 2025
…re-permission-error
…g and removing admins
…r adding and removing admins
- Implement tests for AdminRepositoryImpl covering addAdmin, removeAdmin, and checkAdminStatus methods. - Create mocks for AdminRemoteDataSource and NetworkInfo using Mockito. - Add tests for AddAdmin use case to validate repository interactions and handle different failure scenarios. - Ensure proper verification of method calls and expected outcomes in all tests.
…e user use cases by removing unnecessary await, and improve import organization across various files. Update UI components for consistency and clarity, including widget styling and layout adjustments. Enhance test cases for better coverage and accuracy, ensuring proper handling of user ranking logic and badge display. Fix import order and redundant code in multiple test files to maintain code quality and readability.
…ate test cases for better accuracy and readability
|
…ncy; update test cases for cleaner syntax
…; update mock classes for consistency
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Raphcon creation was failing with "Missing or insufficient permissions" because the Firestore rules validation function only checked for 3 fields while the application sends 5 required fields plus 1 optional field.
Changes
isValidRaphcon()infirestore.rulesto validate all fields sent byRaphconModel.toMap():type(string, required)isActive(boolean, required)comment(string, optional)Before
After
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.