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

Re-organize modules in ballerinax/salesforce package #355

Merged
merged 11 commits into from
Jul 25, 2024
Merged

Conversation

aashikam
Copy link
Contributor

@aashikam aashikam commented Jul 17, 2024

Description

Note: The improvements required are known and are tracked here: ballerina-platform/ballerina-library#6697 and will be a future enhancement.

Note: A minor version bump.

Fixes: ballerina-platform/ballerina-library#6691

Modules

  • bulkv1
  • bulkv2
  • apex
  • soap
  • Deprecate bulkv2 APIs in default package
  • Deprecate apex APIs in default package
  • Clean up new modules
  • Apex API docs
  • Bulkv2 API docs

ballerina/modules/apex/client.bal Outdated Show resolved Hide resolved
ballerina/modules/apex/client.bal Show resolved Hide resolved
ballerina/modules/apex/client.bal Show resolved Hide resolved
ballerina/modules/bulkv2/client.bal Outdated Show resolved Hide resolved
@aashikam aashikam marked this pull request as ready for review July 21, 2024 23:14
@aashikam aashikam requested a review from sahanHe as a code owner July 21, 2024 23:14
ballerina/client.bal Outdated Show resolved Hide resolved
ballerina/modules/apex/Module.md Show resolved Hide resolved
@aashikam
Copy link
Contributor Author

@ayeshLK and all Just FYI before you guys review all the code. This is just moving around existing code. We need to move everything for update 10 as this a minor bump. We have used the same client in the default package.

public isolated function init(ConnectionConfig config) returns error? {
. Tests are also the existing tests, which are just being moved from default package to modules.

We have no intention in improving the existing code quality in this effort, this will just be a move. All the errors and improvements required are known and tracked here ballerina-platform/ballerina-library#6697 and I will take a look at all this at once in a separate PR, as there is a lot. Please keep reviewing I will add some of the changes to this issue.

niveathika
niveathika previously approved these changes Jul 25, 2024
Copy link
Contributor

@niveathika niveathika left a comment

Choose a reason for hiding this comment

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

LGTM. @aashikam Lets update the changelog.

Copy link
Member

@ayeshLK ayeshLK left a comment

Choose a reason for hiding this comment

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

LGTM

@niveathika niveathika merged commit 715f665 into master Jul 25, 2024
2 checks passed

<img src=https://raw.githubusercontent.com/ballerina-platform/module-ballerinax-sfdc/master/docs/setup/resources/create-connected-apps.png alt="Create Connected Apps" width="50%" style="border:1px solid #000000">

- Here we will be using https://test.salesforce.com as we are using sandbox environment. Users can use https://login.salesforce.com for normal usage.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- Here we will be using https://test.salesforce.com as we are using sandbox environment. Users can use https://login.salesforce.com for normal usage.
- Here we will be using https://test.salesforce.com as we are using a sandbox environment. Users can use https://login.salesforce.com for normal usage.


<img src=https://raw.githubusercontent.com/ballerina-platform/module-ballerinax-sfdc/master/docs/setup/resources/create_connected%20_app.png alt="Create Connected Apps" width="100%" style="border:1px solid #000000">

4. After the creation user can get consumer key and secret through clicking on the `Manage Consumer Details` button.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
4. After the creation user can get consumer key and secret through clicking on the `Manage Consumer Details` button.
4. After the creation, the user can get the consumer key and secret by clicking on the `Manage Consumer Details` button.

- Allow access if an alert pops up, and the browser will be redirected to a URL like the following:
`https://login.salesforce.com/?code=<ENCODED_CODE>`

- The code can be obtained after decoding the encoded code
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
- The code can be obtained after decoding the encoded code
- The code can be obtained after decoding the encoded code.

}
```

2. Use `bal run` command to compile and run the Ballerina program.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
2. Use `bal run` command to compile and run the Ballerina program.
2. Use the `bal run` command to compile and run the Ballerina program.

@aashikam aashikam deleted the reorgmodules branch August 12, 2024 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Re-organize modules in ballerinax/salesforce package
5 participants