Skip to content

fix: prevent index overwrite and improve scanDocs merging logic#1342

Open
yasnazariel wants to merge 1 commit intobase:masterfrom
yasnazariel:yasnazariel-patch-1
Open

fix: prevent index overwrite and improve scanDocs merging logic#1342
yasnazariel wants to merge 1 commit intobase:masterfrom
yasnazariel:yasnazariel-patch-1

Conversation

@yasnazariel
Copy link
Copy Markdown

Summary

Fixes an issue in scanDocs where directory entries could be overwritten during recursion.

Changes

  • Replaced Object.assign with explicit merge logic
  • Prevented overwriting of index keys
  • Improved path normalization for directory keys

Why

The previous implementation could overwrite entries when multiple directories produced the same key, leading to data loss.

Impact

  • More reliable docs indexing
  • Correct handling of nested directories

…security

- Prevent multiple load event listeners from being attached to iframes
- Improve security by using a specific target origin instead of '*'
- Reduce unnecessary repeated processing
@cb-heimdall
Copy link
Copy Markdown
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

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