Skip to content

GDB-13418 sync repository deletion/creation from another tab#2522

Draft
plamen-yordanov wants to merge 1 commit intomasterfrom
GDB-13418-sync-repository-deletion-from-other-tab
Draft

GDB-13418 sync repository deletion/creation from another tab#2522
plamen-yordanov wants to merge 1 commit intomasterfrom
GDB-13418-sync-repository-deletion-from-other-tab

Conversation

@plamen-yordanov
Copy link
Copy Markdown
Contributor

What

Implement synchronization of repository deletion/creation across different tabs

Why

Because currently there is no such synchronization. When creating/deleting repositories, the changes are not reflected in other tabs from the same origin.

How

  • Added a BroadcastService to send BroadcastChannel messages to other browser contexts
  • Added broadcast-message as a unified model of the message to be sent
  • Added a subscription in the main controller.js, which listens for MessageType.REPOSITORIES_UPDATED and triggers $repositories.init()
  • Added event dispatch on create/delete repository actions

Testing

n/a

Screenshots

Checklist

  • Branch name
  • Target branch
  • Commit messages
  • Squash commits
  • MR name
  • MR Description
  • Tests

## What
Implement synchronization of repository deletion/creation across different tabs

## Why
Because currently there is no such synchronization. When creating/deleting repositories, the changes are not reflected in other tabs from the same origin

## How
- Added a `BroadcastService` to send `BroadcastChannel` messages to other browser contexts
- Added `broadcast-message` as a unified model of the message to be sent
- Added a subscription in the main `controller.js`, which listens for `MessageType.REPOSITORIES_UPDATED` and triggers `$repositories.init()`
- Added event dispatch on create/delete repository actions

## Testing
n/a
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed for 'Shared-components'

Failed conditions
1 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@svilenvelikov
Copy link
Copy Markdown
Collaborator

@plamen-yordanov Wait with this change until Monday please. It turns out to be a feature implementation instead of bugfix.

@svilenvelikov svilenvelikov marked this pull request as draft November 28, 2025 04:17
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