Skip to content

Conversation

dennigogo
Copy link
Contributor

No description provided.

@dennigogo
Copy link
Contributor Author

merge go-lang code

@dennigogo dennigogo closed this Oct 1, 2020
@dennigogo dennigogo reopened this Oct 1, 2020
@dennigogo dennigogo closed this Oct 1, 2020
@dennigogo dennigogo reopened this Oct 1, 2020
@dennigogo dennigogo force-pushed the added-filter-list-with-query-parser branch 3 times, most recently from 75e23a1 to 4da503b Compare October 1, 2020 10:14
main.go Outdated
for i := 0; i < len(q.Filters); i++ {
filter := q.Filters[i]
for key := range q.Filters {
where = ``
Copy link
Owner

Choose a reason for hiding this comment

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

where = ""

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ready

main.go Outdated
} else if filter.Or && OR {
prefix = " OR "
// if last element of next element not OR method
if i+1 == len(q.Filters[key]) || (i+1 < len(q.Filters[key]) && !q.Filters[key][key+1].Or) {
Copy link
Owner

Choose a reason for hiding this comment

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

you have an error in:
q.Filters[key][key+1]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ready

main.go Outdated
where += fmt.Sprintf("%s%s%s", prefix, a, suffix)
} else {
continue
if where != `` {
Copy link
Owner

Choose a reason for hiding this comment

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

if where != "" {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ready

main.go Outdated
}

if len(whereList) == 0 {
return ``
Copy link
Owner

Choose a reason for hiding this comment

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

return ""

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ready

main.go Outdated
}

return where
return strings.Join(whereList, ` AND `)
Copy link
Owner

Choose a reason for hiding this comment

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

" AND "

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ready

main.go Outdated

return " WHERE " + q.Where()
where := q.Where()
if where == `` {
Copy link
Owner

Choose a reason for hiding this comment

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

""

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ready

@dennigogo dennigogo force-pushed the added-filter-list-with-query-parser branch from 4da503b to d6af7f6 Compare October 1, 2020 13:15
@dennigogo dennigogo changed the base branch from master to develop October 1, 2020 13:42
@dennigogo dennigogo force-pushed the added-filter-list-with-query-parser branch 3 times, most recently from eefad9c to f66d5bb Compare October 1, 2020 14:02
@dennigogo dennigogo changed the base branch from develop to master October 1, 2020 14:07
@dennigogo dennigogo changed the base branch from master to develop October 1, 2020 14:07
@dennigogo dennigogo force-pushed the added-filter-list-with-query-parser branch 7 times, most recently from c762140 to 4ca7d68 Compare October 1, 2020 15:58
@dennigogo dennigogo force-pushed the added-filter-list-with-query-parser branch from 4ca7d68 to 586157a Compare October 1, 2020 16:35
@timsolov timsolov merged commit 0898372 into timsolov:develop Oct 1, 2020
@dennigogo dennigogo deleted the added-filter-list-with-query-parser branch October 1, 2020 19:59
timsolov pushed a commit that referenced this pull request Oct 13, 2020
merge timsolov/rest-query-parser::master to master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants