-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[No QA] Add connection types to policy object #36181
Conversation
@yuwenmemon @francoisl I need some help figuring out exactly what we want to define here for the connection types. I know we have a ton of different connections, and the data is going to be different for each one. I guess we need to decide what can be generic for all types, what is specific to different connections, how general or how defined we want to make the TS definition. It could be a wild rabbit-hole to go down. |
@luacmartins Regarding my previous comment about TS types for the full connection data, maybe it's best at this time to just return the connection names (or just use very generic types). Once we actually start utilizing the connection data, it will be much easier for the full types to be defined then. What do you think? |
That makes sense. I think we can go with a generic type for now since none of these data is used yet (we just need to know that we have the connections) and then define the types later. |
@ Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Ha yeah it's a deep hole for sure 😂 There is a common structure at the root, such as For identifying the common root properties I would compare a QBO connection and a NetSuite connection as they are wildly different aside from only a few keys. Here's the sample NetSuite default config: https://github.com/Expensify/Web-Expensify/blob/60004e1167d12fe9cadf25ab9017aef8cef025cf/lib/IntegrationServerUtils.php#L45-L106 |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
type Connection = { | ||
lastSync?: ConnectionLastSync; | ||
data: ConnectionData; | ||
config: ConnectionConfig; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These will end up being quite different from integration to integration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, thanks for some context about that! Sounds like leaving it generic for now is a good approach.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/yuwenmemon in version: 1.4.40-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.40-5 🚀
|
cc @luacmartins
Details
The Integration connections are going to start being pushed to Onyx, so I am adding some basic types for now. Once we start building out the integration functionality, these types will need to be refined.
Fixed Issues
Part of https://github.com/Expensify/Expensify/issues/366291
Tests
None
Offline tests
None
QA Steps
None
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop