Skip to content
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

UI: Edit Page and Refactor Edit Mirror Route #1156

Merged
merged 5 commits into from
Feb 1, 2024

Conversation

Amogh-Bharadwaj
Copy link
Contributor

Screenshot 2024-01-25 at 9 03 28 PM

You get above by clicking on this button:
Screenshot 2024-01-25 at 9 01 52 PM

@Amogh-Bharadwaj Amogh-Bharadwaj force-pushed the ui/refactor-edit-mirror-route branch from f6f743a to 99fa32e Compare January 30, 2024 11:33
@Amogh-Bharadwaj Amogh-Bharadwaj marked this pull request as ready for review January 30, 2024 11:37
@Amogh-Bharadwaj Amogh-Bharadwaj marked this pull request as draft January 30, 2024 11:38
Amogh-Bharadwaj and others added 5 commits February 2, 2024 00:03
`IdleTimeoutSeconds` and `SyncBatchSize` can be changed anytime, tables
can only be added IF mirror is paused, otherwise the button will be
disabled.

Additional changes for this:
1) moved CDC dynamic properties to the main signal selector and blocking
on the main signal selector while paused, so we can receive mirror edits
even while paused.
2) pass `TableNameSchemaMapping` from state always to `NormalizeFlow` in
case new tables were added.
3) added a new property to the tables component to disable selecting of
tables already in the mirror.

There is a bug where tables added to the mirror dynamically will not
reflect in the status screen, will be fixed in a follow up PR.
`TableMappings` Needs to be stored in state as well.
@heavycrystal heavycrystal force-pushed the ui/refactor-edit-mirror-route branch from 91a2643 to 7277854 Compare February 1, 2024 18:53
@Amogh-Bharadwaj Amogh-Bharadwaj marked this pull request as ready for review February 1, 2024 18:54
@heavycrystal heavycrystal merged commit 6969882 into main Feb 1, 2024
11 checks passed
@heavycrystal heavycrystal deleted the ui/refactor-edit-mirror-route branch February 1, 2024 19:08
pankaj-peerdb pushed a commit that referenced this pull request Feb 6, 2024
You get above by clicking on this button:
![Screenshot 2024-01-25 at 9 01
52 PM](https://github.com/PeerDB-io/peerdb/assets/65964360/865cdd5b-f2b4-41a1-ac10-b7c5efe6fbe8)



IdleTimeoutSeconds and SyncBatchSize can be changed anytime, tables can only be added IF mirror is paused, otherwise the button will be disabled.

Additional changes for this:

    moved CDC dynamic properties to the main signal selector and blocking on the main signal selector while paused, so we can receive mirror edits even while paused.
    pass TableNameSchemaMapping from state always to NormalizeFlow in case new tables were added.
    added a new property to the tables component to disable selecting of tables already in the mirror.

There is a bug where tables added to the mirror dynamically will not reflect in the status screen, will be fixed in a follow up PR. TableMappings Needs to be stored in state as well.


---------

Co-authored-by: Kevin Biju <[email protected]>
Co-authored-by: Kevin Biju <[email protected]>
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