Skip to content

Conversation

kobros-tech
Copy link
Contributor

@kobros-tech kobros-tech force-pushed the 18.0-mig-auth_jwt_demo branch 2 times, most recently from e1e86ff to 951a405 Compare April 1, 2025 07:05
@kobros-tech
Copy link
Contributor Author

@sbidoul

demo is there now, I had to ignore eslint for js test files, also warn message had to be ignored for CI test.

@kobros-tech kobros-tech changed the title [IMP] auth_jwt_demo: Migration to 18.0 [MIG] auth_jwt_demo: Migration to 18.0 Apr 1, 2025

# Add filter to the specific logger
logger = logging.getLogger("odoo.addons.auth_jwt.models.ir_http")
logger.addFilter(IgnoreSpecificWarningFilter())
Copy link
Member

Choose a reason for hiding this comment

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

We should not filter warnings like this.

If this warning is expect it we should capture it and test that it has been emitted with self.assertLogs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

can you give me an example?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

anyway, I am ignoring the warining log here as it causes test error in the run boat although it is intentional log from the base module.

I don't want to assert the log but I want to ingonre it from test wathcing errors.

Copy link
Member

@sbidoul sbidoul left a comment

Choose a reason for hiding this comment

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

see previous comment

@sbidoul
Copy link
Member

sbidoul commented May 15, 2025

Also, let's not change auth_jwt_demo/tests/spa/js/oidc-client.js. This file is an external lib. We should exclude it from the linter.

@sbidoul
Copy link
Member

sbidoul commented May 15, 2025

/ocabot migration auth_jwt_demo

@OCA-git-bot OCA-git-bot added this to the 18.0 milestone May 15, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request May 15, 2025
19 tasks
@kobros-tech
Copy link
Contributor Author

kobros-tech commented Jun 17, 2025

Also, let's not change auth_jwt_demo/tests/spa/js/oidc-client.js. This file is an external lib. We should exclude it from the linter.

how can I exclude a file?

@sbidoul

@kobros-tech kobros-tech requested a review from sbidoul June 17, 2025 01:18
@TDu
Copy link
Member

TDu commented Jun 24, 2025

Also, let's not change auth_jwt_demo/tests/spa/js/oidc-client.js. This file is an external lib. We should exclude it from the linter.

how can I exclude a file?

@sbidoul

Probably somewhere in this file

exclude: /README\.rst$|^docs/.*\.rst$

@kobros-tech kobros-tech force-pushed the 18.0-mig-auth_jwt_demo branch from 951a405 to 5b4e615 Compare June 24, 2025 11:56
@dnplkndll
Copy link
Contributor

@kobros-tech is this ready for review?

@kobros-tech
Copy link
Contributor Author

@kobros-tech is this ready for review?

to me yes, but I am waiting for @sbidoul to tell his opinion.

@kobros-tech kobros-tech force-pushed the 18.0-mig-auth_jwt_demo branch from 5b4e615 to a43fc56 Compare September 1, 2025 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants