Skip to content

[feat] Event Patching, Improve authentication, and status handling #65

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

Merged
merged 10 commits into from
Feb 3, 2025

Conversation

Aloento
Copy link
Member

@Aloento Aloento commented Feb 3, 2025

Summary of the Pull Request:

This PR introduces multiple improvements across authentication, event management, and status handling:

  • Authentication & Configuration Enhancements:

    • Removed unused authentication parameters for cleaner logic.
    • Updated PostCSS configuration to use the correct Tailwind plugin name.
  • Event Management Enhancements:

    • Improved event editor with better date handling using Day.js.
    • Disabled date fields based on event type and status for a more intuitive experience.
    • Added a loading state to the submit button to prevent multiple submissions.
    • Implemented improved date validation for event start and end times.
  • Status Handling Improvements:

    • Added utility functions to determine open event statuses.
    • Refactored event filtering logic for better readability and maintainability.
    • Improved event status handling in TransformerV2, refining status assignments and history ID usage.
  • Other Improvements:

    • Updated the label of the end date field to "(Plan) End CET" for clarity.
    • Removed unused secret environment variables to streamline the build process and enhance security.

Removes unused authentication parameters for cleaner logic
Updates PostCSS configuration to use the correct Tailwind plugin name

Improves code readability and maintainability
Adds utility functions to determine open event statuses
Refactors event filtering logic to enhance readability and maintainability
Adds support for start and end date inputs using dayjs for better date formatting.

Disables date fields based on event type and status, ensuring a more intuitive user experience.

Includes loading state for the submit button to prevent multiple submissions.

Relates to user feedback on event management.
Implements improved date validation for event start and end times.
Replaces status update mechanism with a more robust API call.
Enhances user experience by integrating loading state during submission.
Adds a check to skip empty RegionServices for better logging
Refines status assignment logic for 'Changed' and 'ImpactChanged' statuses
Updates history ID assignment to use the update ID instead of a counter
Eliminates SD_REDIRECT_URL, SD_LOGOUT_REDIRECT_URL, and SD_AUTH_SECRET from workflow files and Dockerfile to streamline the build process.

Improves security by reducing the exposure of unnecessary secrets.
Copy link

@anton-sidelnikov anton-sidelnikov left a comment

Choose a reason for hiding this comment

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

looks good

@@ -54,6 +54,3 @@ jobs:
SD_BACKEND_URL=${{ secrets.SD_BACKEND_URL }}
SD_CLIENT_ID=${{ secrets.SD_CLIENT_ID }}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it still relevant? Could you please double check env variables with examples.

Copy link
Member Author

@Aloento Aloento Feb 3, 2025

Choose a reason for hiding this comment

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

it is relevant, any problem?

SD_BACKEND_URL="https://localhost:8080"
SD_CLIENT_ID=""
SD_AUTHORITY_URL=""

The front end still needs the basic information from the Auth to process the token.

@Aloento Aloento requested a review from sgmv February 3, 2025 12:42
@Aloento Aloento added the gate Merge PR label Feb 3, 2025
@otc-zuul otc-zuul bot merged commit 81c6326 into main Feb 3, 2025
8 checks passed
@otc-zuul otc-zuul bot deleted the feat_patch branch February 3, 2025 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gate Merge PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants