forked from microsoft/Power-Fx
-
Notifications
You must be signed in to change notification settings - Fork 0
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
[pull] main from microsoft:main #683
Merged
Merged
Conversation
This file contains 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
Was throwing a NullRefException for some connectors having option sets
See #2755 Get a real fix next Co-authored-by: Mike <[email protected]>
Reviewer's Guide by SourceryThis PR removes SQL relationship handling functionality from the CDP table resolver as these relationships are not equivalent to those found in Dataverse or ServiceNow. The code is commented out for future reference rather than being completely deleted. Additionally, it adds version detection logic for swagger files and fixes a flaky test. Updated class diagram for CdpTableResolverclassDiagram
class CdpTableResolver {
+ResolveTableAsync(string tableName, CancellationToken cancellationToken) ConnectorType
-List<SqlRelationship> sqlRelationships
-GetSqlRelationships(string text) List<SqlRelationship>
}
class SqlRelationship {
-string RelationshipName
-string ParentTable
-string ColumnName
-string ReferencedTable
-string ReferencedColumnName
}
CdpTableResolver --> SqlRelationship : uses
note for CdpTableResolver "SQL relationship handling is commented out for future reference."
Updated class diagram for ConnectorTypeclassDiagram
class ConnectorType {
+ConnectorType(JsonElement schema, string tableName, SymbolTable optionSets, ConnectorCompatibility compatibility, IList<ReferencedEntity> referencedEntities, string datasetName, string name, string connectorName, ICdpTableResolver resolver, ServiceCapabilities serviceCapabilities, bool isTableReadOnly)
-SetRelationship(SqlRelationship relationship)
}
class SqlRelationship {
-string RelationshipName
-string ParentTable
-string ColumnName
-string ReferencedTable
-string ReferencedColumnName
}
ConnectorType --> SqlRelationship : removed
note for ConnectorType "SQL relationship handling is removed."
Updated class diagram for SwaggerFileIdentificationclassDiagram
class SwaggerFileIdentification {
+LocateSwaggerFiles(string[] folders, string searchPattern) Dictionary<string, string>
-GetVersion(string str) int
}
note for SwaggerFileIdentification "Added version detection logic for swagger files."
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
See Commits and Changes for more details.
Created by pull[bot] (v2.0.0-alpha.1)
Can you help keep this open source service alive? 💖 Please sponsor : )
Summary by Sourcery
Remove unused SQL relationship handling code and improve Swagger file selection logic by incorporating version comparison. Update tests to align with these changes.
Enhancements:
Tests: