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

Add GitHub workflow to pack BI connectors #19

Merged
20 commits merged into from
Dec 21, 2021

Conversation

Yury-Fridlyand
Copy link

@Yury-Fridlyand Yury-Fridlyand commented Dec 17, 2021

Description

Renamed Power BI connector as "OpenSearch Project"
Added a new GitHub workflow to build (pack) BI connectors, steps are:

  • pack Tableau JDBC connector
  • pack Tableau ODBC connector
  • pack Power BI connector for 'OpenSearch Project'
  • apply some changes to Power BI connector to rename it
  • pack the Power BI connector for 'Amazon OpenSearch Service'
  • publish artifacts

https://github.com/Bit-Quill/opensearch-project-sql/actions/runs/1593959072

Issues Resolved

AOS-253

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…The PBI connector is being built twice with different names accroding to the Amazon's request.

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
…ore than in filename to make PBI distuingish them

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
For all connectors added check for successful packing before publishing

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
@Yury-Fridlyand Yury-Fridlyand requested review from kylepbit, a user and raymond-lum December 17, 2021 20:31
@Yury-Fridlyand Yury-Fridlyand assigned ghost Dec 17, 2021
@@ -19,7 +19,7 @@ SqlOdbcPBIConnectorType = type function (
])
)
as table meta [
Documentation.Name = "OpenSearch"
Documentation.Name = "OpenSearch Project"

Choose a reason for hiding this comment

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

Where are these changes here, they seem unrelated to the GitHub flows?

Copy link
Author

Choose a reason for hiding this comment

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

According to Amazon's request we should build 2 connectors: one for OpenSearch Project and the second one - for Amazon OpenSearch Service. OpenSearch is not a valid name.

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Pack Tableau ODBC connector

Choose a reason for hiding this comment

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

Why do we pack both ODBC and JDBC? I thought we were only going to use JDBC going forward?

Copy link
Author

Choose a reason for hiding this comment

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

This script build both for future reference. At the moment, repo already contains a taco for ODBC, so nothing changed for ODBC actually.

Choose a reason for hiding this comment

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

The ODBC one is now deprecated for the JDBC one, we should stop building the ODBC one.

Copy link
Author

Choose a reason for hiding this comment

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

Disabled in 4cadfd1.

run: |
zip OpenSearchProject.mez *.png *.m *.resx *.pqm
working-directory: bi-connectors/PowerBIConnector
- name: Prepare the second Power BI ODBC connector

Choose a reason for hiding this comment

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

What is the second one...?

Copy link
Author

Choose a reason for hiding this comment

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

There are 2 connector requested by Amazon: one for OpenSearch Project which is being build from the repo as is; and the second one - for Amazon OpenSearch Service. To build the second one we need to modify few strings in the connector code.

Choose a reason for hiding this comment

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

Can you then name them accordingly instead of "the second one"?

Copy link
Author

Choose a reason for hiding this comment

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

Changed in 6e37870.

…rs-AOS-253

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
… shipping

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
Removed Tableau ODBC driver source files since the driver is not supposed to be.

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
working-directory: bi-connectors/TableauConnector/opensearch_sql_jdbc
- name: Prepare Power BI ODBC connector
run: |
cp SqlOdbcPBIConnector.pq SqlOdbcPBIConnector.m

Choose a reason for hiding this comment

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

Are these names right after the rebranding that occurred?

…erge

Signed-off-by: Yury Fridlyand <yuryf@bitquilltech.com>
@ghost ghost merged commit 741c963 into powerbi-main Dec 21, 2021
matthewryanwells pushed a commit that referenced this pull request Aug 21, 2023
 (opensearch-project#1988)

* spotless apply for OpenSearch P1.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Manual spotless changes

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* spotless apply for OpenSearch P2.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* 90 files checked after spotless apply for legacy

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Added checkstyle ignore failures to legacy

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Fixed comma issue

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Spotless apply

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Revert build.gradle

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

---------

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
Signed-off-by: Mitchell Gale <Mitchell.gale@improving.com>
MitchellGale added a commit that referenced this pull request Aug 22, 2023
 (opensearch-project#1988)

* spotless apply for OpenSearch P1.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Manual spotless changes

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* spotless apply for OpenSearch P2.

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* 90 files checked after spotless apply for legacy

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Added checkstyle ignore failures to legacy

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Fixed comma issue

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Spotless apply

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

* Revert build.gradle

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>

---------

Signed-off-by: Mitchell Gale <Mitchell.Gale@improving.com>
Signed-off-by: Mitchell Gale <Mitchell.gale@improving.com>
This pull request was closed.
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.

3 participants