From 5fa2e2a735cf37555c36f7ce009276c0f9ee88ca Mon Sep 17 00:00:00 2001 From: Dillon Nys <24740863+dnys1@users.noreply.github.com> Date: Mon, 14 Oct 2024 20:40:32 -0700 Subject: [PATCH] chore(cloud_auth): Remove some leftover print statements (#221) Clean up from debugging --- README.md | 2 +- services/celest_cloud_auth/CHANGELOG.md | 4 ++++ .../lib/src/database/auth_database.dart | 12 ++++++------ .../celest_cloud_auth/lib/src/model/route_map.dart | 4 +--- services/celest_cloud_auth/pubspec.yaml | 2 +- 5 files changed, 13 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index b5339c3..f6028a3 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ And to stay up-to-date on the future of Celest, including full server-side rende To get started with Celest, you'll need to configure your development environment so that you have Flutter and the Celest CLI installed on your machine. 1. Install [Flutter](https://docs.flutter.dev/get-started/install) from the official website -3. [Download](https://celest.dev/download) and install the Celest CLI +2. [Download](https://celest.dev/download) and install the Celest CLI ### Creating a project diff --git a/services/celest_cloud_auth/CHANGELOG.md b/services/celest_cloud_auth/CHANGELOG.md index 951a5a3..4389ac1 100644 --- a/services/celest_cloud_auth/CHANGELOG.md +++ b/services/celest_cloud_auth/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.1.0+1 + +- chore: Remove some leftover print statements + ## 0.1.0 - Initial release. diff --git a/services/celest_cloud_auth/lib/src/database/auth_database.dart b/services/celest_cloud_auth/lib/src/database/auth_database.dart index 6a75459..b76594d 100644 --- a/services/celest_cloud_auth/lib/src/database/auth_database.dart +++ b/services/celest_cloud_auth/lib/src/database/auth_database.dart @@ -226,12 +226,12 @@ class AuthDatabase extends $AuthDatabase { }); } }); - // _logger.finest(() { - // }); - final policyIds = policySet.policies.entries - .map((pol) => pol.value.id ?? pol.key) - .sorted(); - print('Effective policies: $policyIds'); + _logger.finest(() { + final policyIds = policySet.policies.entries + .map((pol) => pol.value.id ?? pol.key) + .sorted(); + return 'Effective policies: $policyIds'; + }); return policySet; } diff --git a/services/celest_cloud_auth/lib/src/model/route_map.dart b/services/celest_cloud_auth/lib/src/model/route_map.dart index 822a811..955daf7 100644 --- a/services/celest_cloud_auth/lib/src/model/route_map.dart +++ b/services/celest_cloud_auth/lib/src/model/route_map.dart @@ -15,12 +15,10 @@ extension type const RouteMap(Map _routes) }) { final collector = _RouteCollector(); project.accept(collector); - final routeMap = RouteMap({ + return RouteMap({ ...collector._routes, ...additionalRoutes, }); - print(routeMap); - return routeMap; } } diff --git a/services/celest_cloud_auth/pubspec.yaml b/services/celest_cloud_auth/pubspec.yaml index 461b403..1c8b9a2 100644 --- a/services/celest_cloud_auth/pubspec.yaml +++ b/services/celest_cloud_auth/pubspec.yaml @@ -1,6 +1,6 @@ name: celest_cloud_auth description: A Dart-native authentication and authorization service built on Celest, Cedar, and SQLite. -version: 0.1.0 +version: 0.1.0+1 homepage: https://celest.dev repository: https://github.com/celest-dev/celest/tree/main/services/celest_cloud_auth