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

Add history undo command #1452

Merged
merged 17 commits into from
Jun 10, 2024
Merged

Commits on Jun 7, 2024

  1. Add transaction_item_reason_at(...) to get history reason

    For `undo` operation we need to be able to get a reason at specific
    point in history for specific package.
    kontura committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    8aaceda View commit details
    Browse the repository at this point in the history
  2. Split out add_replay_to_goal from adding serialized trans

    This is needed so that `add_replay_to_goal` can be reused when reverting
    transactions.
    kontura committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    3dccce1 View commit details
    Browse the repository at this point in the history
  3. Goal: Add API for reverting history transactions

    So far it can revert only one transaction.
    To allow reverting multiple transactions we need to implement merging of
    transactions.
    kontura committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    9fd7ccd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    eeeb8de View commit details
    Browse the repository at this point in the history
  5. Add history undo command

    kontura committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    a28bbf5 View commit details
    Browse the repository at this point in the history
  6. Add ignore_installed and ignore_extras to GoalElements

    They will be used by replaying and reverting transactions.
    kontura committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    e58d18c View commit details
    Browse the repository at this point in the history
  7. Add autocomplete for history info

    Adds support for completing transaction ids.
    `history info` can accept also ranges of transactions which are not
    completed yet.
    kontura committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    b6825ac View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    505ce63 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    dca15d8 View commit details
    Browse the repository at this point in the history
  10. Use ignore_installed option in transaction replay

    It adds checks for expected packages in transaction replay producing
    either a warning or an error if something is missing.
    
    This matches the dnf4 implementation.
    kontura committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    caeb9dd View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    a700946 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    0751277 View commit details
    Browse the repository at this point in the history
  13. Transaction replay: add checking for extra packages

    It is configured by `ignore_extras` and `ignore_installed`
    `GoalJobSettings`.
    
    This matches the functionality in dnf4.
    
    It also removes some unused imports in transaction.cpp
    kontura committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    14cf659 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    db8e310 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    8c322d6 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    7fdb2b6 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    2da5d66 View commit details
    Browse the repository at this point in the history