Skip to content

Commit

Permalink
chore: move package to Trendyol
Browse files Browse the repository at this point in the history
  • Loading branch information
GokselKUCUKSAHIN committed Sep 3, 2024
1 parent 31f7a13 commit e897d4d
Show file tree
Hide file tree
Showing 36 changed files with 89 additions and 88 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ jobs:
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: GokselKUCUKSAHIN/es-query-builder
slug: Trendyol/es-query-builder
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project_name: es-query-builder
release:
github:
name: es-query-builder
owner: GokselKUCUKSAHIN
owner: Trendyol

before:
hooks:
Expand Down
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ for low overhead and minimal memory usage.
With [Go's module support](https://go.dev/wiki/Modules#how-to-use-modules), `go [build|run|test]` automatically fetches the necessary dependencies when you add the import in your code:

```sh
import "github.com/GokselKUCUKSAHIN/es-query-builder"
import "github.com/Trendyol/es-query-builder"
```

Alternatively, use `go get`:

```sh
go get -u github.com/GokselKUCUKSAHIN/es-query-builder
go get -u github.com/Trendyol/es-query-builder
```

### Example
Expand Down Expand Up @@ -181,7 +181,7 @@ You can check and run [benchmarks](./benchmarks) on your machine.
- **Memory**: 512MB LPDDR2
- **Go Version**: go1.22.3

![armv6l](https://github.com/GokselKUCUKSAHIN/es-query-builder/assets/33639948/8972003d-9b00-4021-9f69-347723ac59de)
![armv6l](https://github.com/Trendyol/es-query-builder/assets/33639948/8972003d-9b00-4021-9f69-347723ac59de)

### ARM64

Expand All @@ -191,20 +191,20 @@ You can check and run [benchmarks](./benchmarks) on your machine.
- **Memory**: 32GB LPDDR5
- **Go Version**: go1.22.1

![arm64](https://github.com/GokselKUCUKSAHIN/es-query-builder/assets/33639948/ca9e2603-ebcd-4dec-92f4-e501ddcc4abe)
![arm64](https://github.com/Trendyol/es-query-builder/assets/33639948/ca9e2603-ebcd-4dec-92f4-e501ddcc4abe)

# Want to Contribute?

<details>
<summary><b>Join Us</b></summary>
<img src="https://github.com/GokselKUCUKSAHIN/es-query-builder/assets/33639948/bc696d14-a55d-4ec4-9cb4-021cc4128760" width="400px" alt="join us"/>
<img src="https://github.com/Trendyol/es-query-builder/assets/33639948/bc696d14-a55d-4ec4-9cb4-021cc4128760" width="400px" alt="join us"/>
</details>

### Contribute to Our Project

Want to help out? Awesome! Here’s how you can contribute:

1. **Report Issues:** Got a suggestion, recommendation, or found a bug? Head over to the [Issues](https://github.com/GokselKUCUKSAHIN/es-query-builder/issues) section and let us know.
1. **Report Issues:** Got a suggestion, recommendation, or found a bug? Head over to the [Issues](https://github.com/Trendyol/es-query-builder/issues) section and let us know.

2. **Make Changes:** Want to improve the code?
- Fork the repo
Expand All @@ -218,18 +218,18 @@ We’re excited to see your contributions. Thanks for helping make this project

MIT - Please check the [LICENSE](./LICENSE) file for full text.

[doc-img]: https://godoc.org/github.com/GokselKUCUKSAHIN/es-query-builder?status.svg
[doc-img]: https://godoc.org/github.com/Trendyol/es-query-builder?status.svg

[doc]: https://godoc.org/github.com/GokselKUCUKSAHIN/es-query-builder
[doc]: https://godoc.org/github.com/Trendyol/es-query-builder

[go-report-img]: https://goreportcard.com/badge/github.com/GokselKUCUKSAHIN/es-query-builder
[go-report-img]: https://goreportcard.com/badge/github.com/Trendyol/es-query-builder

[go-report]: https://goreportcard.com/report/github.com/GokselKUCUKSAHIN/es-query-builder
[go-report]: https://goreportcard.com/report/github.com/Trendyol/es-query-builder

[cov-img]: https://codecov.io/gh/GokselKUCUKSAHIN/es-query-builder/branch/main/graph/badge.svg
[cov-img]: https://codecov.io/gh/Trendyol/es-query-builder/branch/main/graph/badge.svg

[cov]: https://codecov.io/gh/GokselKUCUKSAHIN/es-query-builder
[cov]: https://codecov.io/gh/Trendyol/es-query-builder

[ci-img]: https://github.com/GokselKUCUKSAHIN/es-query-builder/actions/workflows/build-test.yml/badge.svg
[ci-img]: https://github.com/Trendyol/es-query-builder/actions/workflows/build-test.yml/badge.svg

[ci]: https://github.com/GokselKUCUKSAHIN/es-query-builder/actions/workflows/build-test.yml
[ci]: https://github.com/Trendyol/es-query-builder/actions/workflows/build-test.yml
6 changes: 3 additions & 3 deletions benchmarks/aggs_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"encoding/json"
"testing"

"github.com/GokselKUCUKSAHIN/es-query-builder/es"
"github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/order"
"github.com/GokselKUCUKSAHIN/es-query-builder/test/assert"
"github.com/Trendyol/es-query-builder/es"
"github.com/Trendyol/es-query-builder/es/enums/sort/order"
"github.com/Trendyol/es-query-builder/test/assert"
)

//// Aggs Example ////
Expand Down
8 changes: 4 additions & 4 deletions benchmarks/complex_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"encoding/json"
"testing"

"github.com/GokselKUCUKSAHIN/es-query-builder/es"
"github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/mode"
"github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/order"
"github.com/GokselKUCUKSAHIN/es-query-builder/test/assert"
"github.com/Trendyol/es-query-builder/es"
"github.com/Trendyol/es-query-builder/es/enums/sort/mode"
"github.com/Trendyol/es-query-builder/es/enums/sort/order"
"github.com/Trendyol/es-query-builder/test/assert"
)

//// Complex Example ////
Expand Down
6 changes: 3 additions & 3 deletions benchmarks/conditional_complex_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"encoding/json"
"testing"

"github.com/GokselKUCUKSAHIN/es-query-builder/es"
"github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/order"
"github.com/GokselKUCUKSAHIN/es-query-builder/test/assert"
"github.com/Trendyol/es-query-builder/es"
"github.com/Trendyol/es-query-builder/es/enums/sort/order"
"github.com/Trendyol/es-query-builder/test/assert"
)

//// Conditional Complex Example ////
Expand Down
6 changes: 3 additions & 3 deletions benchmarks/intermediate_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"encoding/json"
"testing"

"github.com/GokselKUCUKSAHIN/es-query-builder/es"
"github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/order"
"github.com/GokselKUCUKSAHIN/es-query-builder/test/assert"
"github.com/Trendyol/es-query-builder/es"
"github.com/Trendyol/es-query-builder/es/enums/sort/order"
"github.com/Trendyol/es-query-builder/test/assert"
)

//// Intermediate Example ////
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/nested_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"encoding/json"
"testing"

"github.com/GokselKUCUKSAHIN/es-query-builder/es"
"github.com/GokselKUCUKSAHIN/es-query-builder/test/assert"
"github.com/Trendyol/es-query-builder/es"
"github.com/Trendyol/es-query-builder/test/assert"
)

//// Nested Example ////
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/readme_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"encoding/json"
"testing"

"github.com/GokselKUCUKSAHIN/es-query-builder/es"
"github.com/GokselKUCUKSAHIN/es-query-builder/test/assert"
"github.com/Trendyol/es-query-builder/es"
"github.com/Trendyol/es-query-builder/test/assert"
)

//// Readme Example ////
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/simple_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"encoding/json"
"testing"

"github.com/GokselKUCUKSAHIN/es-query-builder/es"
"github.com/GokselKUCUKSAHIN/es-query-builder/test/assert"
"github.com/Trendyol/es-query-builder/es"
"github.com/Trendyol/es-query-builder/test/assert"
)

//// Simple Example ////
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/ty_example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"encoding/json"
"testing"

"github.com/GokselKUCUKSAHIN/es-query-builder/es"
"github.com/GokselKUCUKSAHIN/es-query-builder/test/assert"
"github.com/Trendyol/es-query-builder/es"
"github.com/Trendyol/es-query-builder/test/assert"
)

//// TY Example ////
Expand Down
2 changes: 1 addition & 1 deletion es/aggregations.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package es

import Order "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/order"
import Order "github.com/Trendyol/es-query-builder/es/enums/sort/order"

type aggsType Object

Expand Down
6 changes: 3 additions & 3 deletions es/aggregations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package es_test
import (
"testing"

"github.com/GokselKUCUKSAHIN/es-query-builder/es"
"github.com/GokselKUCUKSAHIN/es-query-builder/test/assert"
"github.com/Trendyol/es-query-builder/es"
"github.com/Trendyol/es-query-builder/test/assert"

Order "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/order"
Order "github.com/Trendyol/es-query-builder/es/enums/sort/order"
)

//// AGGS ////
Expand Down
4 changes: 2 additions & 2 deletions es/bool_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package es_test
import (
"testing"

"github.com/GokselKUCUKSAHIN/es-query-builder/es"
"github.com/GokselKUCUKSAHIN/es-query-builder/test/assert"
"github.com/Trendyol/es-query-builder/es"
"github.com/Trendyol/es-query-builder/test/assert"
)

//// Bool ////
Expand Down
6 changes: 3 additions & 3 deletions es/condition/if_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package condition_test
import (
"testing"

"github.com/GokselKUCUKSAHIN/es-query-builder/es"
"github.com/GokselKUCUKSAHIN/es-query-builder/es/condition"
"github.com/GokselKUCUKSAHIN/es-query-builder/test/assert"
"github.com/Trendyol/es-query-builder/es"
"github.com/Trendyol/es-query-builder/es/condition"
"github.com/Trendyol/es-query-builder/test/assert"
)

func Test_Condition_If_should_add_Term_When_condition_is_true(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions es/enums/match/operator/operator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package operator_test
import (
"testing"

Operator "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/match/operator"
"github.com/GokselKUCUKSAHIN/es-query-builder/test/assert"
Operator "github.com/Trendyol/es-query-builder/es/enums/match/operator"
"github.com/Trendyol/es-query-builder/test/assert"
)

func Test_ScoreModeString(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions es/enums/nested/score-mode/score_mode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package scoremode_test
import (
"testing"

scoremode "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/nested/score-mode"
"github.com/GokselKUCUKSAHIN/es-query-builder/test/assert"
scoremode "github.com/Trendyol/es-query-builder/es/enums/nested/score-mode"
"github.com/Trendyol/es-query-builder/test/assert"
)

func Test_ScoreModeString(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions es/enums/sort/mode/mode_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package mode_test
import (
"testing"

"github.com/GokselKUCUKSAHIN/es-query-builder/test/assert"
"github.com/Trendyol/es-query-builder/test/assert"

Mode "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/mode"
Mode "github.com/Trendyol/es-query-builder/es/enums/sort/mode"
)

func Test_ModeString(t *testing.T) {
Expand Down
5 changes: 3 additions & 2 deletions es/enums/sort/order/order_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package order_test
import (
"testing"

Order "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/order"
"github.com/GokselKUCUKSAHIN/es-query-builder/test/assert"
"github.com/Trendyol/es-query-builder/test/assert"

Order "github.com/Trendyol/es-query-builder/es/enums/sort/order"
)

func TestOrderString(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions es/exists_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package es_test
import (
"testing"

"github.com/GokselKUCUKSAHIN/es-query-builder/es"
"github.com/GokselKUCUKSAHIN/es-query-builder/test/assert"
"github.com/Trendyol/es-query-builder/es"
"github.com/Trendyol/es-query-builder/test/assert"
)

//// Exists ////
Expand Down
4 changes: 2 additions & 2 deletions es/match_all_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package es_test
import (
"testing"

"github.com/GokselKUCUKSAHIN/es-query-builder/es"
"github.com/GokselKUCUKSAHIN/es-query-builder/test/assert"
"github.com/Trendyol/es-query-builder/es"
"github.com/Trendyol/es-query-builder/test/assert"
)

//// MatchAll ////
Expand Down
2 changes: 1 addition & 1 deletion es/match_none_query.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package es

import Operator "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/match/operator"
import Operator "github.com/Trendyol/es-query-builder/es/enums/match/operator"

type matchNoneType Object

Expand Down
6 changes: 3 additions & 3 deletions es/match_none_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package es_test
import (
"testing"

"github.com/GokselKUCUKSAHIN/es-query-builder/es"
"github.com/GokselKUCUKSAHIN/es-query-builder/test/assert"
"github.com/Trendyol/es-query-builder/es"
"github.com/Trendyol/es-query-builder/test/assert"

Operator "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/match/operator"
Operator "github.com/Trendyol/es-query-builder/es/enums/match/operator"
)

//// MatchNone ////
Expand Down
2 changes: 1 addition & 1 deletion es/match_query.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package es

import Operator "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/match/operator"
import Operator "github.com/Trendyol/es-query-builder/es/enums/match/operator"

type matchType Object

Expand Down
6 changes: 3 additions & 3 deletions es/match_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package es_test
import (
"testing"

"github.com/GokselKUCUKSAHIN/es-query-builder/es"
"github.com/GokselKUCUKSAHIN/es-query-builder/test/assert"
"github.com/Trendyol/es-query-builder/es"
"github.com/Trendyol/es-query-builder/test/assert"

Operator "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/match/operator"
Operator "github.com/Trendyol/es-query-builder/es/enums/match/operator"
)

//// Match ////
Expand Down
2 changes: 1 addition & 1 deletion es/nested_query.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package es

import ScoreMode "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/nested/score-mode"
import ScoreMode "github.com/Trendyol/es-query-builder/es/enums/nested/score-mode"

type nestedType Object

Expand Down
6 changes: 3 additions & 3 deletions es/nested_query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package es_test
import (
"testing"

"github.com/GokselKUCUKSAHIN/es-query-builder/es"
"github.com/GokselKUCUKSAHIN/es-query-builder/test/assert"
"github.com/Trendyol/es-query-builder/es"
"github.com/Trendyol/es-query-builder/test/assert"

ScoreMode "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/nested/score-mode"
ScoreMode "github.com/Trendyol/es-query-builder/es/enums/nested/score-mode"
)

//// Nested ////
Expand Down
4 changes: 2 additions & 2 deletions es/query.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package es

import (
Mode "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/mode"
Order "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/order"
Mode "github.com/Trendyol/es-query-builder/es/enums/sort/mode"
Order "github.com/Trendyol/es-query-builder/es/enums/sort/order"
)

type sortType Object
Expand Down
8 changes: 4 additions & 4 deletions es/query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"reflect"
"testing"

"github.com/GokselKUCUKSAHIN/es-query-builder/es"
"github.com/GokselKUCUKSAHIN/es-query-builder/test/assert"
"github.com/Trendyol/es-query-builder/es"
"github.com/Trendyol/es-query-builder/test/assert"

Mode "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/mode"
Order "github.com/GokselKUCUKSAHIN/es-query-builder/es/enums/sort/order"
Mode "github.com/Trendyol/es-query-builder/es/enums/sort/mode"
Order "github.com/Trendyol/es-query-builder/es/enums/sort/order"
)

//// NewQuery ////
Expand Down
Loading

0 comments on commit e897d4d

Please sign in to comment.