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

Add debug actions #548

Merged
merged 8 commits into from
Aug 15, 2024
Merged

Add debug actions #548

merged 8 commits into from
Aug 15, 2024

Conversation

kmcginnes
Copy link
Collaborator

@kmcginnes kmcginnes commented Aug 14, 2024

Description

Added some debug actions to the active connection. These will be hidden when the app is run in production mode using the new NotInProduction component.

There are some other small changes made as well.

Actions

These actions are useful when testing schema synchronization issues. There's a lot of complicated logic around states that are difficult to set up. These actions make it easier to set up those scenarios

  • Delete Schema - deletes the schema entry in storage for the active connection
  • Reset Last Updated - sets the lastUpdate timestamp on the schema to undefined
  • Last Sync Failed - sets the flag that indicates a failure on the last schema sync
  • Reset Vertex Totals - sets all vertex type totals to undefined

Other Changes

  • Change button style to have a slightly bolder font
  • Remove unnecessary curly braces on string props in ConnectionDetail
  • Add max-w-paragraph to Tailwind theme to limit width of prose type text in the app for better readability
  • Slight adjustments to naming and styles for Typography components

Validation

  • Tested that debug actions are hidden in production mode
  • Tested individual actions

CleanShot 2024-08-14 at 13 44 43@2x

Related Issues

Check List

  • I confirm that my contribution is made under the terms of the Apache 2.0
    license.
  • I have run pnpm checks to ensure code compiles and meets standards.
  • I have run pnpm test to check if all tests are passing.
  • I have covered new added functionality with unit tests if necessary.
  • I have added an entry in the Changelog.md.

@kmcginnes kmcginnes requested a review from michaelnchin August 14, 2024 19:02
@kmcginnes kmcginnes marked this pull request as ready for review August 14, 2024 19:02
@kmcginnes kmcginnes merged commit 6280d6d into aws:main Aug 15, 2024
1 check passed
@kmcginnes kmcginnes deleted the debug-actions branch August 15, 2024 15:23
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.

2 participants