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

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

Copy link
Copy Markdown
MemberAuthor

@simahawksimahawk 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 threadqueue_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_methodandself._job_method.__name__or"",
self._job_method.__name__ifself._job_methodelse"",

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

@guewenguewen 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 threadqueue_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

Copy link
Copy Markdown
MemberAuthor

Thanks!!! All comments attended

@guewen

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

Copy link
Copy Markdown
Contributor

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

Sign up for freeto 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

@etobella@OCA-git-bot@guewen@simahawk@sbidoul