forked from brunoclz/br-acc
-
Notifications
You must be signed in to change notification settings - Fork 16
feat(platform): add shared investigation flows and harden transparency tools #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
lspassos1
wants to merge
3
commits into
enioxt:main
Choose a base branch
from
lspassos1:feat/complete-47-53-32-33
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
562c973
feat(platform): add shared investigation flows and harden transparenc…
lspassos1 72659ff
fix(shared-investigations): keep gallery public and preserve empty-pa…
lspassos1 878c229
fix(shared-investigations): harden public imports and search fallbacks
lspassos1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| MATCH (i:Investigation {share_token: $token})-[:HAS_ANNOTATION]->(a:Annotation) | ||
| RETURN a.id AS id, | ||
| a.entity_id AS entity_id, | ||
| i.id AS investigation_id, | ||
| a.text AS text, | ||
| a.created_at AS created_at | ||
| ORDER BY a.created_at DESC | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| MATCH (i:Investigation) | ||
| WHERE i.share_token IS NOT NULL | ||
| RETURN count(i) AS total |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| MATCH (i:Investigation) | ||
| WHERE i.share_token IS NOT NULL | ||
| WITH count(i) AS total | ||
| MATCH (i:Investigation) | ||
| WHERE i.share_token IS NOT NULL | ||
| ORDER BY i.updated_at DESC | ||
| SKIP $skip | ||
| LIMIT $limit | ||
| OPTIONAL MATCH (i)-[:INCLUDES]->(e) | ||
| WITH total, i, collect(coalesce(e.cpf, e.cnpj, e.contract_id, e.sanction_id, e.amendment_id, e.cnes_code, e.finance_id, e.embargo_id, e.school_id, e.convenio_id, e.stats_id, elementId(e))) AS eids | ||
| RETURN total, | ||
| i.id AS id, | ||
| i.title AS title, | ||
| i.description AS description, | ||
| i.created_at AS created_at, | ||
| i.updated_at AS updated_at, | ||
| i.share_token AS share_token, | ||
| [x IN eids WHERE x IS NOT NULL] AS entity_ids |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| MATCH (i:Investigation {share_token: $token})-[:HAS_TAG]->(t:Tag) | ||
| RETURN t.id AS id, | ||
| i.id AS investigation_id, | ||
| t.name AS name, | ||
| t.color AS color | ||
| ORDER BY t.name | ||
coderabbitai[bot] marked this conversation as resolved.
Show resolved
Hide resolved
|
||
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TASKS.mdexceeds SSOT size limit and should be split/archived.The file is now far beyond the allowed backlog size, which makes SSOT maintenance harder and conflicts with the repo rule.
As per coding guidelines "Maintain SSOT registry files: ... TASKS.md (backlog, max 500 lines)".
🤖 Prompt for AI Agents