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

[18.0][MIG] queue_job_batch, test_queue_job_batch: Migration to 18.0 #744

Open
wants to merge 22 commits into
base: 18.0
Choose a base branch
from

Conversation

ivantodorovich
Copy link
Contributor

Superseeds:

Changes:

  • The batch enqueued method is removed, to better reflect the fact that the batch's jobs are executed immediately.
  • The batch state draft is is renamed to pending, for the same purpose.
  • The batch's is_read field is initialized as False (default value), and only set to True when it's actually read.
  • We now use identity_exact for the batch check_state delayed method.
  • The widget has been reimplemented due to the heavy refactoring made in the core mail app: odoo/odoo@7710c333

etobella and others added 22 commits January 23, 2025 12:12
[UPD] Update queue_job_batch.pot
* incorrect sintax in security rule
* change missleading name of security rule
standard migration and some little ux improvements: now hide
button is a fa-check button that on click just marks as read
the batch, do not navigate to it and updates immediately
the systray.
* The batch enqueued method is removed, to better reflect the fact that the
  batch's jobs are executed immediately.

* The batch state `draft` is is renamed to `pending`, for the same purpose.

* The batch's `is_read` field is initialized as `False` (default value), and
  only set to `True` when it's actually read.

* We now use `identity_exact` for the batch `check_state` delayed method.

* The widget has been reimplemented due to the heavy refactoring made in the
  core `mail` app: odoo/odoo@7710c333
Copy link

@yankinmax yankinmax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technical migration seems ok! Thanks @ivantodorovich


@api.depends("job_ids")
@api.depends("job_ids.state")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we really need this depends? Job count is not stored.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really, for the UI. I'd be necessary when reading the field programatically, though, without invalidating caches. It's a habit 😓

@simahawk
Copy link
Contributor

/ocabot migration queue_job_batch
/ocabot migration test_queue_job_batch

@OCA-git-bot OCA-git-bot modified the milestone: 18.0 Jan 28, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request Jan 28, 2025
6 tasks
@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.