Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Code Inspection] Data Cleaning Prototype (HTMX + Alpine) #34846

Draft
wants to merge 121 commits into
base: master
Choose a base branch
from

Conversation

biyeun
Copy link
Member

@biyeun biyeun commented Jul 2, 2024

Product Description

Technical Summary

Feature Flag

Safety Assurance

Safety story

Automated test coverage

QA Plan

Migrations

  • The migrations in this code can be safely applied first independently of the code

Rollback instructions

  • This PR can be reverted after deploy with no further considerations

Labels & Review

  • Risk label is set correctly
  • The set of people pinged as reviewers is appropriate for the level of risk of the change

Copy link

sentry-io bot commented Jul 2, 2024

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: corehq/apps/hqwebapp/templatetags/hq_shared_tags.py

Function Unhandled Issue
to_user_time AssertionError /a/{domain}/reports/form_data/{ins...
Event Count: 1

Did you find this useful? React with a 👍 or 👎

@dimagimon dimagimon added dependencies Pull requests that update a dependency file Risk: High Change affects files that have been flagged as high risk. Risk: Medium Change affects files that have been flagged as medium risk. labels Jul 2, 2024
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this custom loading logic needed? It seems to do the same thing as hx-indicator: https://htmx.org/attributes/hx-indicator/

Comment on lines +5 to +6
hx-swap="outerHTML"
hq-hx-refresh="{{ table_selector }}">
Copy link
Contributor

Choose a reason for hiding this comment

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

why are these on the div? I expected to see them on the same element that's making the request.

hx-post="{{ request.path_info }}{% querystring %}"
hx-disable-elt="this"
hq-hx-loading="{{ table.loading_indicator_id }}"
hx-on::after-request="htmx.trigger('#{{ table.column_manager.filter_form_id }}', 'refreshFilters');">
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems to duplicate the hq-hx-refresh functionality. Do we need both?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file Risk: High Change affects files that have been flagged as high risk. Risk: Medium Change affects files that have been flagged as medium risk.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants