Skip to content

[FIX] queue_job: delayable representation failed#487

Merged
OCA-git-bot merged 1 commit into
OCA:15.0from
tegin:15.0-fix-delay
Dec 7, 2022
Merged

[FIX] queue_job: delayable representation failed#487
OCA-git-bot merged 1 commit into
OCA:15.0from
tegin:15.0-fix-delay

Conversation

@etobella

@etobella etobella commented Dec 1, 2022

Copy link
Copy Markdown
Member

Represenation might fall in case of no job definition (as it happens on https://github.com/OCA/edi/blob/15.0/edi_oca/tests/test_record.py#L127), it tries to generate the log warning, but it fails

@simahawk

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @guewen,
some modules you are maintaining are being modified, check this out!

@etobella

etobella commented Dec 1, 2022

Copy link
Copy Markdown
Member Author

@simahawk simahawk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LG, maybe worth to adapt the tests?

Comment thread queue_job/delay.py Outdated
return "Delayable({}.{}({}, {}))".format(
self.recordset, self._job_method.__name__, self._job_args, self._job_kwargs
str(self.recordset),
self._job_method and self._job_method.__name__ or "",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
self._job_method and self._job_method.__name__ or "",
self._job_method.__name__ if self._job_method else "",

... and ... or ... is a pattern I prefer to avoid

@guewen guewen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! Would you mind applying my "cosmetic" suggestion?

Comment thread queue_job/delay.py Outdated
@OCA-git-bot

Copy link
Copy Markdown
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). 🤖

@etobella

etobella commented Dec 7, 2022

Copy link
Copy Markdown
Member Author

Thanks!!! All comments attended

@guewen

guewen commented Dec 7, 2022

Copy link
Copy Markdown
Member

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hey, thanks for contributing! Proceeding to merge this for you.
Prepared branch 15.0-ocabot-merge-pr-487-by-guewen-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit bee08ac into OCA:15.0 Dec 7, 2022
@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at dfa104a. Thanks a lot for contributing to OCA. ❤️

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.

5 participants