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

feat(logging): default remote config #3643

Merged

Commits on Sep 13, 2023

  1. feat(logging): add cloudwatch logger plugin

    Nika Hassani authored and khatruong2009 committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    5ad91cf View commit details
    Browse the repository at this point in the history
  2. feat(logging): default remote config

    chore: moved declarations to improve dart syntax
    
    chore: use logger instead of print statement
    
    chore: added sigv4signer to sign the http request
    
    chore: switched Future.delayed to Timer and implemented jsonserializable
    
    chore: roll back unnecessary changes from cloudwatch_logger_plugin
    
    chore: removed an extra line of fetchAndCacheConstraintFromEndpoint
    
    chore: moved saveConstraintLocally out of fetchConstraintFromEndpoint and moved into fetchAndCacheFromEndpoint
    
    fix: seeing if moving the queued_item_store_test.dart file into main test directory will fix testing issue
    
    Revert "fix: seeing if moving the queued_item_store_test.dart file into main test directory will fix testing issue"
    
    This reverts commit f033713.
    
    chore: added ignore line for try catch block and removed unnecessary method
    
    chore: added web implementation of remote_constraint_provider
    
    fix: try changing path provider dependency to fix test
    
    fix: added flutter sdk to dependencies
    
    chore: generated workflows after adding dependencies
    
    fix: fixed indentation issue in pubspec
    
    chore: generate new workflows
    
    chore: changed file and folder names for file_storage
    
    chore: fix import for renamed files, added region as a required field to DefaultRemoteConfiguration and fixed scope variable to adjust for that. Also moved scope variable to inside fetchConstraintFromEndpoint method
    
    replaced AmplifyLogger with AWSLoggerMixin instead.
    
    chore: made signer private and used AWSHttpRequest.get method directly rather than calling it through AWSHttpRequest
    
    use stoppable timer instead of while loop
    
    chore: updated LoggingConstraint class to match the remote config file
    
    chore: added AWSHeaders.accept to the headers for the request
    
    chore: added public documentation and trailing comma
    
    chore: removed unnecessary time checks in the getter if statement
    
    chore: removed initialize() method and put it into the constructor
    
    chore: removed unnecessary lastUpdate variable now that it is no longer checked in the getter
    
    chore: added a comment and removed flutter plugin files
    
    chore: fixed some formatting
    
    chore: removed the InSeconds part of the refreshIntervalInSeconds property because it's a Duration, which isn't specific to seconds
    
    chore: fixed comment to reflect change in fetchInterval and flushInterval property name change
    
    chore: make isRunning variable privatge
    
    chore: corrected error handling in the fetchAndCacheConstraintFromEndpoint method
    
    chore: add license headers to storage implementations
    
    chore: added path for join() method to ensure windows compatibility
    
    chore: removed dart:io dependency, changed HttpHeaders.acceptHeader to AWSHeaders.accept, changed getter to just retrieve from cache
    
    chore: remove flutter dependency
    
    chore: removed http and replaced with AWSHttpClient
    
    chore: removed unnecessary stop method
    
    chore: remove .flutter-plugins files
    
    chore: moved constructor initializers into a separate init function so that I can use async await
    
    chore: added local storage check before fetching in the initialize function
    
    chore: refactored DefaultRemoteLoggingConstraintProvider to separate createRequest from the rest of the class, allowing for signed and unsigned requests to be sent
    
    chore: used private global variable for local storage key
    
    chore: refacted fileStore dart implementation
    khatruong2009 committed Sep 13, 2023
    Configuration menu
    Copy the full SHA
    53ef002 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0506c77 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f379e7c View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2023

  1. Configuration menu
    Copy the full SHA
    8de0309 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2023

  1. Configuration menu
    Copy the full SHA
    55dfab9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0ef2b3d View commit details
    Browse the repository at this point in the history
  3. chore: changed names of file storage functions, logger level, and rem…

    …oved flutter plugin gitignore
    khatruong2009 committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    53c66a3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    507d086 View commit details
    Browse the repository at this point in the history
  5. chore: Added completer, removed conditional import, added closeable, …

    …removed credentials provider from base class and only added to defaultconstraintprovider, changed fileStorage to use FileStorage instead of just FileStorageImpl, removed isRunning since it is never false after the first run, added completer so that delay isn't needed for tests, removed the catching of errors, added credentials provider parameter to awssigv4signer,
    khatruong2009 committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    bc635d8 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1e3c6ae View commit details
    Browse the repository at this point in the history
  7. Update packages/logging_cloudwatch/aws_logging_cloudwatch/lib/src/plu…

    …gin_config.dart
    
    Co-authored-by: Dillon Nys <24740863+dnys1@users.noreply.github.com>
    khatruong2009 and dnys1 authored Sep 15, 2023
    Configuration menu
    Copy the full SHA
    6c03448 View commit details
    Browse the repository at this point in the history
  8. Update packages/logging_cloudwatch/aws_logging_cloudwatch/lib/src/plu…

    …gin_config.dart
    
    Co-authored-by: Dillon Nys <24740863+dnys1@users.noreply.github.com>
    khatruong2009 and dnys1 authored Sep 15, 2023
    Configuration menu
    Copy the full SHA
    03a8455 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    05391d8 View commit details
    Browse the repository at this point in the history
  10. Update packages/logging_cloudwatch/aws_logging_cloudwatch/lib/src/fil…

    …e_storage/file_storage.dart
    
    Co-authored-by: Dillon Nys <24740863+dnys1@users.noreply.github.com>
    khatruong2009 and dnys1 authored Sep 15, 2023
    Configuration menu
    Copy the full SHA
    009b0d8 View commit details
    Browse the repository at this point in the history
  11. Update packages/logging_cloudwatch/aws_logging_cloudwatch/lib/src/fil…

    …e_storage/file_storage.dart
    
    Co-authored-by: Dillon Nys <24740863+dnys1@users.noreply.github.com>
    khatruong2009 and dnys1 authored Sep 15, 2023
    Configuration menu
    Copy the full SHA
    9ecffbf View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    8750486 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2023

  1. Configuration menu
    Copy the full SHA
    f513d0e View commit details
    Browse the repository at this point in the history
  2. Update packages/logging_cloudwatch/aws_logging_cloudwatch/lib/src/rem…

    …ote_constraint_provider.dart
    
    Co-authored-by: Dillon Nys <24740863+dnys1@users.noreply.github.com>
    khatruong2009 and dnys1 authored Sep 19, 2023
    Configuration menu
    Copy the full SHA
    c12af97 View commit details
    Browse the repository at this point in the history
  3. Update packages/logging_cloudwatch/aws_logging_cloudwatch/lib/src/rem…

    …ote_constraint_provider.dart
    
    Co-authored-by: Dillon Nys <24740863+dnys1@users.noreply.github.com>
    khatruong2009 and dnys1 authored Sep 19, 2023
    Configuration menu
    Copy the full SHA
    2cbb9b7 View commit details
    Browse the repository at this point in the history
  4. Update packages/logging_cloudwatch/aws_logging_cloudwatch/lib/src/rem…

    …ote_constraint_provider.dart
    
    Co-authored-by: Dillon Nys <24740863+dnys1@users.noreply.github.com>
    khatruong2009 and dnys1 authored Sep 19, 2023
    Configuration menu
    Copy the full SHA
    cad71d6 View commit details
    Browse the repository at this point in the history
  5. Update packages/logging_cloudwatch/aws_logging_cloudwatch/lib/src/rem…

    …ote_constraint_provider.dart
    
    Co-authored-by: Dillon Nys <24740863+dnys1@users.noreply.github.com>
    khatruong2009 and dnys1 authored Sep 19, 2023
    Configuration menu
    Copy the full SHA
    5f185c4 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    b77c8ae View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    da94fe3 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2023

  1. Configuration menu
    Copy the full SHA
    0f3bae3 View commit details
    Browse the repository at this point in the history
  2. Update packages/logging_cloudwatch/aws_logging_cloudwatch/test/remote…

    …_constraint_provider_test.dart
    
    Co-authored-by: NikaHsn <nika.hasani@gmail.com>
    khatruong2009 and NikaHsn authored Sep 20, 2023
    Configuration menu
    Copy the full SHA
    04b78d4 View commit details
    Browse the repository at this point in the history
  3. Update packages/logging_cloudwatch/aws_logging_cloudwatch/test/remote…

    …_constraint_provider_test.dart
    
    Co-authored-by: NikaHsn <nika.hasani@gmail.com>
    khatruong2009 and NikaHsn authored Sep 20, 2023
    Configuration menu
    Copy the full SHA
    0cba479 View commit details
    Browse the repository at this point in the history
  4. Update packages/logging_cloudwatch/aws_logging_cloudwatch/lib/src/fil…

    …e_storage/file_storage.dart
    
    Co-authored-by: NikaHsn <nika.hasani@gmail.com>
    khatruong2009 and NikaHsn authored Sep 20, 2023
    Configuration menu
    Copy the full SHA
    3c2b666 View commit details
    Browse the repository at this point in the history