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

Asyncification of Fluent provider #772

Merged
merged 4 commits into from
Jan 11, 2024
Merged

Asyncification of Fluent provider #772

merged 4 commits into from
Jan 11, 2024

Conversation

gwynne
Copy link
Member

@gwynne gwynne commented Jan 10, 2024

These changes are now available in 4.9.0

Updates the Fluent provider package to be (mostly) Sendable-correct and switches MigrateCommand to being async to avoid dangerous misuse of EventLoopFuture.wait().

Bumps minimum Swift version to 5.7 (matching Vapor).

@gwynne gwynne added bug Something isn't working enhancement New feature or request semver-minor Contains new APIs labels Jan 10, 2024
Copy link
Member

@0xTim 0xTim left a comment

Choose a reason for hiding this comment

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

Need to fix a Sendable annotation but otherwise LGTM

Sources/Fluent/FluentProvider.swift Outdated Show resolved Hide resolved
@gwynne gwynne marked this pull request as ready for review January 10, 2024 20:29
@codecov-commenter
Copy link

Codecov Report

Attention: 21 lines in your changes are missing coverage. Please review.

Comparison is base (8665428) 60.10% compared to head (a075e7f) 60.10%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #772   +/-   ##
=======================================
  Coverage   60.10%   60.10%           
=======================================
  Files          15       15           
  Lines         386      386           
=======================================
  Hits          232      232           
  Misses        154      154           
Files Coverage Δ
.../ModelCredentialsAuthenticatable+Concurrency.swift 85.71% <100.00%> (ø)
Sources/Fluent/Fluent+History.swift 88.88% <ø> (ø)
Sources/Fluent/Fluent+Pagination.swift 100.00% <ø> (ø)
...urces/Fluent/ModelCredentialsAuthenticatable.swift 75.00% <100.00%> (ø)
Sources/Fluent/PageLimit.swift 66.66% <ø> (ø)
...rces/Fluent/Concurrency/Sessions+Concurrency.swift 0.00% <0.00%> (ø)
Sources/Fluent/ModelAuthenticatable.swift 0.00% <0.00%> (ø)
Sources/Fluent/ModelTokenAuthenticatable.swift 0.00% <0.00%> (ø)
Sources/Fluent/Fluent+Sessions.swift 77.41% <60.00%> (ø)
Sources/Fluent/FluentProvider.swift 79.31% <81.81%> (ø)
... and 2 more

@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@gwynne gwynne merged commit a586a5d into main Jan 11, 2024
17 of 18 checks passed
@gwynne gwynne deleted the asyncification branch January 11, 2024 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request semver-minor Contains new APIs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants