chore(deps): update internal dependencies (major)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| canonicalwebteam.discourse | ==5.7.1 -> ==7.1.0 |
||||
| canonicalwebteam.flask-base | ==2.5.0 -> ==3.1.1 |
Release Notes
canonical/canonicalwebteam.discourse (canonicalwebteam.discourse)
v7.1.0
Updated EngagePages class
- Support optional
valueinget_engage_pages_tagsto return tags for a specific engage page type Fixed DiscourseAPI filtering - Only include
keywordandvaluewhen both are provided; same forsecond_keyword/second_valueto avoid sendingNoneto the Data Explorer API
v7.0.0
Added Events class
- Created a new class to handle events from 'Discourse Calender (and events)' API Added EventsParser class
- Created a new parser to process the events retrieve by the Events class Updated check_for_category_updates & check_for_topic_updates
- Moved from Category into DiscourseAPI Updated Category class
- The function
get_topics_in_categorynow returns an array of objects
v6.3.0
Updated EngagePages class
- Remove duplicated tags from the list of tags returned from
get_engage_pages_tags
v6.2.0
Added _inject_custom_css def
- A function that finds css directives (
[style=CLASSNAME]) in the soup and applies to them to the next found element.
v6.1.1
Updated EngagePages class
- Pass values for the provided keys, even if the values are empty or null, as they can be a filter themselves.
v6.1.0
Updated Category class
- Check for additions or deletions of topics within a category and update cached data if needed
v6.0.0
Updated Category class
- Removed to template handling from within the Category class.
- Bump to 6.0.0, as the previous update was a major
v5.8.1
Changes
feat: Add third filter for querying engage pages (#206)
This release was made possible by the following contributors:
v5.8.0
Added Category class
- A generic class for processing discourse categories and the topics they contain
v5.7.4
Changes
feat: Update query to include second keyword and value (#203) removed config.ps5 (#202) Include h3 to table of contents (#200)
This release was made possible by the following contributors:
v5.7.3: : Read href from masked links in metadata
Changes
chore: Bump version to 5.7.3 (#198) Read href instead of string from masked links (#197)
This release was made possible by the following contributors:
v5.7.2
Changes
Add sort by functionality to takeovers 'cooked' content (#196)
This release was made possible by the following contributors:
canonical-web-and-design/canonicalwebteam.flask-base (canonicalwebteam.flask-base)
v3.1.1
Add missing init file to fix the bug of missing opentelemetry module.
v3.1.0
- Add prettified logs to Development mode.
- Add JSON structured logs to Production mode.
- The logging "extra" argument can be used to print JSON data out into the logs.
- Custom parameter "handler" of type logging.Handler can be passed to FlaskBase to personalize log output.
- Traces added to logs if tracing is enabled (through paas-charm).
- Custom parameter "untraced_routes" to mark routes for which tracing should not be enabled.
Upgrade notes
For the production mode to output JSON structured logs you don't need to do anything, as it comes out of the box. Be aware that you can now pass parameters to the logging method with the "extra" argument and anything you pass will appear in the structured JSON log.
For the development prettified logs there is one step to be done.
Update your gunicorn entrypoint to add --logger-class canonicalwebteam.flask_base.log_utils.GunicornDevLogger
if you are in DEBUG mode.
One can pass a custom logging.Handler to FlaskBase in order to personalize the output of the logs. All the work of setting the handler in all the appropriate places is done by FlaskBase.
v3.0.0
- Update to use the latest version of Flask, Werkzeug, gunicorn and gevent.
- Completely remove talisker as a dependency.
- Add per route metrics that report the number of requests, response time, and error rate. (These metrics will be picked up automatically by a statsd-server if you are using the 12f app charm)
Upgrade notes
This version will require a few updates to remove talisker usage in your application. Namely:
- In your
entrypointscript, replacetalisker.gunicorn.geventwithgunicorn. - Replace any instance of
talisker.requestswithrequests. - Remove
TALISKER_REVISION_IDfromDockerfile. - Remove any usage of talisker loggers.
- Remove any usage of
app.extensions["sentry"]as Sentry support was provided by talisker and is no longer available. You can use thesentry-sdkpackage directly to integrate Sentry into your Flask application.
v2.6.1
Changes
add SENTRY_DSN env var (#90)
This release was made possible by the following contributors:
v2.6.0
Changes
Add flask secret key (#87)
This release was made possible by the following contributors:
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
- [ ] If you want to rebase/retry this PR, check this box
This PR was generated by Mend Renovate. View the repository job log.