Skip to content

Misc fixes for webinar demo#355

Open
annehaley wants to merge 11 commits intomasterfrom
demo-fixes
Open

Misc fixes for webinar demo#355
annehaley wants to merge 11 commits intomasterfrom
demo-fixes

Conversation

@annehaley
Copy link
Collaborator

@annehaley annehaley commented Mar 17, 2026

This PR fixes some miscellaneous behavior that I discovered when preparing my demo for the webinar:

  • The legend panel should only show that feature color props are being applied if those color props are present on some features.
  • View states were not being fetched properly due to a bug in the GuardianFilter in access_control.py
  • Fixed project selection behavior in project configuration page (it would reselect the previous project after creating a new project)
  • Added a trailing slash to the API function for deleting a dataset
  • Imported non-analytics tasks to ensure that they are registered by celery

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 17, 2026

Deploying geodatalytics with  Cloudflare Pages  Cloudflare Pages

Latest commit: 03671f5
Status: ✅  Deploy successful!
Preview URL: https://378b3662.geodatalytics.pages.dev
Branch Preview URL: https://demo-fixes.geodatalytics.pages.dev

View logs

Copy link
Collaborator

@BryonLewis BryonLewis left a comment

Choose a reason for hiding this comment

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

a few questions, I don't think any are blockers and could be implemented/updated if required.

@annehaley annehaley requested a review from BryonLewis March 20, 2026 15:17
if project_id:
# Return queryset filtered by objects that are within these projects
return queryset.filter_by_projects(Project.objects.filter(id__in=ids))
return queryset.filter_by_projects(Project.objects.filter(id=project_id))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be a .get or do we want to intentionally allow an non-existent project_id to be passed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The filter_by_projects function accepts a Queryset of Projects, so we must use .filter instead of .get so that we send a queryset instead of a single object.

Copy link
Collaborator

@brianhelba brianhelba left a comment

Choose a reason for hiding this comment

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

1 question, 1 small code simplification

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.

3 participants