updated notes and plan

This commit is contained in:
2026-11-12 15:20:32 -05:00
parent 5be7ebde70
commit 002947e69e
2 changed files with 26 additions and 1 deletions

View File

@@ -39,14 +39,25 @@ The goal is at least 20 additional test methods across nine search categories, w
- Use descriptive test methods and subtests for closely related input variants. Keep at least 20 additional test methods as the overall target rather than treating subtest iterations as separate methods. Run the affected tests and existing search suite. Report which of the nine categories now have exact result assertions and which still need work.
REWRITEN
- Add useful search results tests for group, user, sprint, tag, notification, and permission-set searches. Reuse as much setup as possible where it makes the tests clearer, but preserve each endpoint's distinct access and request rules. Cover matching and exclusion, no-match results, and response totals where available. Only test partial, case-insensitive, and multi-term searches on endpoints that support them.
Use clear test names and subtests for similar inputs. Write at least 20 new test methods (subtests don’t count). Run the new tests and the existing search tests. Tell me which of the nine categories now have exact result checks and which don’t.
### Step 5 - Verify Permissions and Result Isolation
**Implementation prompt:**
- Expand permission tests using ordinary users with explicit group and permission assignments. For endpoints using ObjectAssignment-based visibility, assert both that authorised records are returned and restricted records are absent. Cover users with no relevant access and an object reachable through multiple accessible groups, checking that identities and counts are not duplicated. Verify that inaccessible matches do not inflate returned totals.
- Add to permission tests using ordinary users with explicit group and permission assignments. For endpoints using ObjectAssignment-based visibility, assert both that authorised records are returned and restricted records are absent. Cover users with no relevant access and an object reachable through multiple accessible groups, checking that identities and counts are not duplicated. Verify that inaccessible matches do not inflate returned totals.
- Test administrative endpoints against their actual access rules rather than assuming group-based visibility applies everywhere. For notifications, verify recipient isolation where the contract supports it. Keep superuser behaviour in separate tests so it cannot hide missing permission setup. Run the permission cases and existing search suite, and summarise the access boundaries each test protects. Do not alter production permissions as part of this step.
REWRITTEN
- Add permission tests that use normal users with set groups and permissions. For endpoints that use ObjectAssignment to control what users can see, check two things - allowed records show up, and restricted records do not. Test users with no access. Test an object that a user can reach through more than one group, and check that it is not listed twice and the counts are not doubled. Check that matches the user cannot access do not add to the totals.
- Test admin endpoints against their real access rules. Don't assume group-based visibility applies everywhere. For notifications, check that each user only sees their own, where the contract allows it. Keep superuser tests separate so they cannot hide missing permission setup. Run the new permission tests and the existing search tests. Then write a short summary of the access limits each test protects. Do not change any production permissions in this step.
### Step 6 - Exercise Pagination and Closed-State Boundaries
**Implementation prompt:**
@@ -57,6 +68,15 @@ The goal is at least 20 additional test methods across nine search categories, w
- For each search path supporting closed/include_closed filtering, create accessible open and closed records and verify the default behaviour and supported toggle values. Include a restricted closed record to ensure enabling the toggle cannot bypass visibility filtering. Where an endpoint lacks either feature, record that limitation instead of adding it. Run the new cases and the entire search suite, then report results and any unresolved contract questions.
REWROTE
- For the main search, test each kind of "closed" status on its own: RFC statuses 5 and 6, the "Closed" text value for kanban, and the higher-level "Closed" status on the other supported types. Check that include_closed changes the status filter, but does'nt bring back deleted records or records the user can't access. Test paging for each type in a request that covers many types. Use different page counts, and include an empty list for a type that has run out of results. Test destination_page values of zero and negative numbers against the current first-page behavior. Keep two things apart: which slice of results is returned, and the current_page value that is sent back. If the current_page value is misleading, raise it as a question about the contract. Do not quietly change what it means.
- Add pagination tests only for endpoints that actually paginate. Create test records to check page one, page two, the last page, and a page past the end. Check the exact records on each page, the page sizes, the totals, and the page info if the endpoint returns it. Make sure no records repeat or go missing across valid pages. Follow the documented or actual handling of invalid pages. Check the order of records only if the order is part of the contract.
- For each search path that supports closed or include_closed filtering, create open and closed records the user can access. Check the default behavior and each supported toggle value. Add a closed record the user cannot access, to prove that turning on the toggle doesn't skirt around visibility rules. If an endpoint is missing either feature, note that gap. Do not add the feature. Run the new tests and the full search suite. Then report the results and any open questions about the contract.
### Step 3A - Cover Main Search Text and Numeric Matching
**Implementation prompt:**
@@ -67,6 +87,10 @@ The goal is at least 20 additional test methods across nine search categories, w
- Keep datasets below the page limit unless pagination is the subject of the test. Do not assume unsupported tokenisation, fuzzy matching, exact-only numeric matching, or stable ordering. Run the focused tests and search suite. If the existing behaviour conflicts with the intended contract, explain the discrepancy before modifying production code or accepting it as correct.
REWROTE
### Step 3B - Cover Main Search Visibility and Soft Deletion
**Implementation prompt:**