Skip to content

Release 0.56.9#3023

Merged
odlbot merged 7 commits intoreleasefrom
release-candidate
Mar 9, 2026
Merged

Release 0.56.9#3023
odlbot merged 7 commits intoreleasefrom
release-candidate

Conversation

@odlbot
Copy link
Contributor

@odlbot odlbot commented Mar 6, 2026

Shankar Ambady

Matt Bertrand

Chris Chudzicki

Ahtesham Quraish

ahtesham-quraish and others added 7 commits March 5, 2026 13:30
Co-authored-by: Ahtesham Quraish <ahtesham.quraish@192.168.10.4>
* adding posthog_ui_host

* adding value to frontend env
* consolidating filter code

* refactor to allow for more complext filters

* adding isnull params for url and title

* add title to qdrant index

* update specs

* allow null in serializer

* adding test

* spec update

* updating resource collection indexes, payload fields and fix tests

* refactor to avoid lint C901,PLR0912

* fix delete points filter selector

* check for bad values
@github-actions
Copy link

github-actions bot commented Mar 6, 2026

OpenAPI Changes

Show/hide 6 changes: 0 error, 0 warning, 6 info
6 changes: 0 error, 0 warning, 6 info
info	[new-optional-request-parameter] at head/openapi/specs/v0.yaml	
	in API GET /api/v0/vector_content_files_search/
		added the new optional 'query' request parameter 'title'

info	[new-optional-request-parameter] at head/openapi/specs/v0.yaml	
	in API GET /api/v0/vector_content_files_search/
		added the new optional 'query' request parameter 'title__isnull'

info	[new-optional-request-parameter] at head/openapi/specs/v0.yaml	
	in API GET /api/v0/vector_content_files_search/
		added the new optional 'query' request parameter 'url'

info	[new-optional-request-parameter] at head/openapi/specs/v0.yaml	
	in API GET /api/v0/vector_content_files_search/
		added the new optional 'query' request parameter 'url__isnull'

info	[new-optional-request-parameter] at head/openapi/specs/v0.yaml	
	in API GET /api/v0/vector_learning_resources_search/
		added the new optional 'query' request parameter 'title__isnull'

info	[new-optional-request-parameter] at head/openapi/specs/v0.yaml	
	in API GET /api/v0/vector_learning_resources_search/
		added the new optional 'query' request parameter 'url__isnull'


Unexpected changes? Ensure your branch is up-to-date with main (consider rebasing).

"enrollment_modes" not in run
or any(
mode.get("mode_slug") == "verified"
for mode in run.pop("enrollment_modes", [])
Copy link

Choose a reason for hiding this comment

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

Bug: The use of run.pop("enrollment_modes") in parse_certification mutates the run dictionary, removing a field that downstream consumers rely on.
Severity: HIGH

Suggested Fix

In parse_certification, change the iteration from for mode in run.pop("enrollment_modes", []) to for mode in run.get("enrollment_modes", []). This will read the data without modifying the original run dictionary.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: learning_resources/etl/utils.py#L1097

Potential issue: In `learning_resources/etl/utils.py`, the `parse_certification`
function uses `run.pop("enrollment_modes", [])` to iterate over a list of modes. Because
dictionaries are mutable, this `.pop()` call removes the `enrollment_modes` key from the
original `run` object. This modified `run` object is then yielded by the calling
functions (`transform_programs` and `_transform_course`). Downstream consumers,
including frontend components, expect the `enrollment_modes` field to be present on run
objects, and its absence will lead to missing data and potential rendering errors.

Did we get this right? 👍 / 👎 to inform future reviews.

@odlbot odlbot merged commit 31fcf46 into release Mar 9, 2026
17 checks passed
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