Skip to content

Upstream 16261 - improve Reliability Rating#247

Merged
cigamit merged 1 commit intomainfrom
upstream16261
Feb 28, 2026
Merged

Upstream 16261 - improve Reliability Rating#247
cigamit merged 1 commit intomainfrom
upstream16261

Conversation

@cigamit
Copy link
Copy Markdown
Contributor

@cigamit cigamit commented Feb 28, 2026

All good best practice fixes

@cigamit cigamit requested a review from TheWitness February 28, 2026 04:58
@cigamit cigamit self-assigned this Feb 28, 2026
Copilot AI review requested due to automatic review settings February 28, 2026 04:58
@cigamit cigamit added enhancement New feature or request javascript Pull requests that update javascript code python Pull requests that update python code labels Feb 28, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR applies a collection of small “best practice” updates across templates, static assets, and backend code, largely focused on accessibility/HTML correctness and minor reliability/maintainability improvements.

Changes:

  • Improves HTML/accessibility (adds lang, alt, and doctype where missing; removes unnecessary attributes).
  • Fixes/cleans up Python patterns (timezone-aware timestamps, removes invalid __init__ returns, minor logic cleanup).
  • Tweaks static/error-page styling and assets; minor serializer/view refactors.

Reviewed changes

Copilot reviewed 18 out of 18 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
awx/templates/rest_framework/login.html Removes redundant role="form" attribute on login form.
awx/templates/error.html Adds alt text to logo image for accessibility.
awx/static/custom_error.css Cleans up flex alignment and adds safer font fallbacks.
awx/static/custom_504.html Adds lang="en" and updates image + alt text.
awx/static/custom_502.html Adds lang="en" and updates image + alt text.
awx/static/custom_404.html Adds <!DOCTYPE html> and lang="en".
awx/static/api/api.js Replaces regex-based quote stripping with replaceAll() (compatibility concern noted).
awx/main/utils/formatters.py Uses timezone-aware fromtimestamp(..., tz=...) for log timestamps.
awx/main/notifications/grafana_backend.py Adjusts epoch/time conversions to use timezone-aware datetimes.
awx/main/models/unified_jobs.py Fixes elapsed-time zero comparison for Decimal and removes incorrect websocket started emission.
awx/main/models/ha.py Removes invalid return value from __init__.
awx/main/models/base.py Removes invalid return value from __init__.
awx/main/migrations/_inventory_source_vars.py Removes unused filters handling.
awx/api/views/webhooks.py Renames **kwargs parameter to avoid shadowing local variable use.
awx/api/views/init.py Avoids shadowing args by renaming exception args variable.
awx/api/templates/api/stdout.html Adds lang="en" to HTML.
awx/api/serializers.py Adds defensive check for summary_dict and simplifies host-error dict creation.
awx/api/pagination.py Removes invalid return value from __init__.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread awx/static/api/api.js
Comment thread awx/static/api/api.js
@cigamit cigamit merged commit ace70c2 into main Feb 28, 2026
4 checks passed
@cigamit cigamit deleted the upstream16261 branch February 28, 2026 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request javascript Pull requests that update javascript code python Pull requests that update python code

Development

Successfully merging this pull request may close these issues.

3 participants