This addon provides features to sync problem content across different domains in Hydro. It allows users to sync changes from an original problem to its referred problems.
-
Sync with Original Problem: Users can sync the content of a problem with its original problem, ensuring that all referred problems are up-to-date with the latest changes.
-
Disable Editing Referred Problems: The admin can disable editing of referred problems to ensure that all changes are made through the original problem.

-
Distribute Change: When enabled, changes made to the original problem can be distributed to all referred problems in other domains. This feature requires the user to have the
PRIV_MANAGE_ALL_DOMAINprivilege.
-
Clone the repository:
git clone https://github.com/tywzoj/hydro-addon-problem-content-sync.git
-
Apply the addon to your Hydro instance:
hydrooj addon add /path/to/hydro-addon-problem-content-sync pm2 restart hydrooj
The addon provides the following configuration options:
-
allow_distribute_problem_change_to_other_domains: A boolean setting to enable or disable the distribution of changes from the original problem to referred problems. -
disable_edit_referred_problem: A boolean setting to enable or disable editing of referred problems.
You can login as an administrator on Hydro and navigate to the system configuration page to modify these settings.
This addon is licensed under the AGPL-3.0 License. See the LICENSE file for more details.
