-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[connectors] - fix(microsoft): data sour selection tree (#6321)
* [connectors/microsoft] - feature: extend Microsoft connector to include file nodes - Add support for listing file nodes alongside folder nodes in Microsoft connector responses - Implement permission filtering logic for both files and folders when constructing content nodes - Create a `getFileAsContentNode` function for mapping Microsoft DriveItem to ContentNode for files - Enhance permission mapping to account for parent permissions when assigning to content nodes * [connectors/microsoft] - feature: enhance node retrieval with read permission filter - Added support to use the "read" permission filter when retrieving child nodes - Removed getFileAsContentNode call and integrated getMicrosoftNodeAsContentNode for node retrieval - Implemented a new function to get content nodes from MicrosoftNodeModel - Refactored node type determination logic into getMicrosoftNodeAsContentNode function - Removed conditional file handling related to permission filtering within the content node retrieval process * [connectors] - feature: expand retrieval of child nodes with content inclusion flag - Add an additional flag to the `retrieveChildrenNodes` function to control the inclusion of additional content - Expose `retrieveChildrenNodes` function for potential external use by making it exportable * [connectors] - refactor: remove redundant fetch parameter in Microsoft connector - Simplified the node fetching logic by removing an unnecessary boolean parameter * fix: lint/format * [connectors] - feature: enhance filtering for children nodes retrieval in Microsoft connector - Include a new condition to filter only 'file', 'folder', and 'drive' node types when retrieving children nodes - Utilize Sequelize's Op.in to specify the multiple nodeType values in the query condition * [microsoft/temporal] - fix: adjust spreadsheet syncing logic - Remove early return for spreadsheet mimeType to align with new sync logic - Pass `parentInternalId` when syncing spreadsheets and worksheets to maintain hierarchy - Ensure spreadsheets have the `parentInternalId` when upserted to the database for relational integrity * [connectors/microsoft] - refactor: streamline children node retrieval in MicrosoftConnector - Replace direct usage of `MicrosoftNodeModel` with `MicrosoftNodeResource` - Introduce method `fetchNodesWithoutParents` to get nodes without parent references - Create `fetchChildren` method in `MicrosoftNodeResource` to encapsulate children node fetching logic - Adjust `retrieveChildrenNodes` function to utilize new `MicrosoftNodeResource` methods for improved readability and maintainability --------- Co-authored-by: Jules <[email protected]> Co-authored-by: Jules <[email protected]>
- Loading branch information
1 parent
900892c
commit 60f48a5
Showing
5 changed files
with
155 additions
and
31 deletions.
There are no files selected for viewing
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
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
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
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
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