Repository navigation
Move to Polhem 1.6.0 - #9
Merged
Merged
Conversation
Polhem 1.6.0 replaces ApiClientInfo and the per-connector access token with PolhemApiClient, which owns the connection and the signed-in identity (polhem ADR-053). The template follows: - Polhem.* 1.4.0 -> 1.6.0. Polhem.JsonRpc.AspNetCore stays at 1.2.0, the latest, which 1.6.0 accepts. - The four heads set ClientInfo.SupportedConnectTypes, and ConnectionViewModel reads ClientInfo.ConnectType; both moved there from the removed ApiClientInfo. - LoginViewModel enters the company on the connector it signed in with. The login signs in the client that connector belongs to, so the WARNING about re-reading ClientInfo.SystemApiConnector no longer applies. - ConnectionViewModel takes polhem's updated comment on where a wrong API key shows up. The files match apps/Polhem.Northwind in polhem v1.6.0.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ApiClientInfo(polhem ADR-053). The heads now setClientInfo.SupportedConnectTypes, andConnectionViewModelreadsClientInfo.ConnectType.LoginViewModelenters the company on the same connector it signed in with, because the login signs in the client that connector belongs to. The WARNING about re-readingClientInfo.SystemApiConnectoris removed.apps/Polhem.Northwindin polhem v1.6.0.Verification
dotnet build Polhem.Northwind.slnx -c Releasepasses for every head (Server, UI, Desktop, Browser, iOS, Android), with 0 warnings.dotnet runofPolhem.Northwind.Server), throughClientInfofrom the Polhem.UI.Core 1.6.0 package. The steps matchConnectionViewModelandLoginViewModel: connect, apply the API key,LoginAsyncandApplyLoginResult,EnterCompanyAsyncon the same connector, list Category (8 rows) and Order (5 rows), load the localized Order schema through the definition loader, thenLogoutAsync. Every step succeeded.computer-usecannot drive the desktop head when it is launched withdotnet.