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

[Spotless] Fixes license headers in core/src (PR 1) #306

Closed
wants to merge 3 commits into from

Conversation

MitchellGale
Copy link

@MitchellGale MitchellGale commented Jul 21, 2023

Description

Fixes license headers in core/src.

Converts all header licenses to:

 * Copyright OpenSearch Contributors
 * SPDX-License-Identifier: Apache-2.0
 */

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.

* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0

Choose a reason for hiding this comment

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

We need to confirm that this file wasn't copied from another project. In that case we need to preserve the license header (or keep both).

Copy link
Author

Choose a reason for hiding this comment

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

Looks like it was part of 254510e 254510e554156ef83365e0ea68935d4d75145330

By David Cui 2021-06-25 5:47 p.m.

Copy link

@Yury-Fridlyand Yury-Fridlyand Jul 21, 2023

Choose a reason for hiding this comment

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

* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
* Copyright OpenSearch Contributors

Choose a reason for hiding this comment

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

The same.

* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
* Copyright OpenSearch Contributors

Choose a reason for hiding this comment

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

The same.

Choose a reason for hiding this comment

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

Checking why this has Apache 2 license.

Choose a reason for hiding this comment

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

I guess both were by mistake: opensearch-project@8632f80

* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
* Copyright OpenSearch Contributors

Choose a reason for hiding this comment

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

The same.

@codecov
Copy link

codecov bot commented Jul 21, 2023

Codecov Report

Merging #306 (0097d53) into integ/sl_licenseHeader (76189c9) will not change coverage.
The diff coverage is n/a.

@@                    Coverage Diff                    @@
##             integ/sl_licenseHeader     #306   +/-   ##
=========================================================
  Coverage                     97.39%   97.39%           
  Complexity                     4608     4608           
=========================================================
  Files                           401      401           
  Lines                         11408    11408           
  Branches                        843      843           
=========================================================
  Hits                          11111    11111           
  Misses                          290      290           
  Partials                          7        7           
Flag Coverage Δ
sql-engine 97.39% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...alysis/DataSourceSchemaIdentifierNameResolver.java 100.00% <ø> (ø)
...org/opensearch/sql/analysis/HighlightAnalyzer.java 100.00% <ø> (ø)
...va/org/opensearch/sql/analysis/NestedAnalyzer.java 100.00% <ø> (ø)
.../org/opensearch/sql/data/model/ExprValueUtils.java 100.00% <ø> (ø)
...rg/opensearch/sql/exception/NoCursorException.java 100.00% <ø> (ø)
...l/exception/UnsupportedCursorRequestException.java 100.00% <ø> (ø)
.../org/opensearch/sql/executor/ExecutionContext.java 100.00% <ø> (ø)
...main/java/org/opensearch/sql/executor/QueryId.java 100.00% <ø> (ø)
...java/org/opensearch/sql/executor/QueryManager.java 100.00% <ø> (ø)
...java/org/opensearch/sql/executor/QueryService.java 100.00% <ø> (ø)
... and 65 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@dai-chen
Copy link

I think we need to find the previous guidance on this. For example, I recall old source file from ODFE has such license header: https://github.com/Bit-Quill/opensearch-project-sql/pull/308/files which we should not touch.

If you're unclear, please disable this license header check for now. Or if you want, please spend some time to double check.

@MitchellGale
Copy link
Author

opensearch-project#1893
PR closed until licence addressed

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.

4 participants