Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

SONAR-12686 upgrade es client to 7.9.3 and move to HTTP - add should minimum match eq 1 to user index queries ES 7.X changed behaviour in case filter query with bool it defaults to '0' https://www.elastic.co/guide/en/elasticsearch/reference/7.x/breaking-changes-7.0.html#_the_filter_context_has_been_removed - fix issue index routing param ES 7.X helped discover this bug as new setting has been auto configured which is 'index.number_of_routing_shards'. This has changed how documents are distributed across shards depending on how many shards the index has. Without that change issues docs has been incorrectly routed to the same shard hash as projects and it worked no matter what routing key you used projectUuid or auth_projectUuid. - update ngram and edge_ngram names to match with es 7.x nGram and edgeNgram has been deprecated in favour of ngram and edge_ngram https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking-changes-7.0.html#deprecated-ngram-edgengram-token-filter-cannot-be-used - remove `_all : enabled` usage from UT This field was already deprecated in 6.X, now it has been removed. https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking-changes-7.0.html#all-meta-field-removed - add Elasticsearch High Level REST client dependency - use sonar.search.port for ES HTTP - main process use ES Rest client to check ES status - sonar.cluster.search.hosts has HTTP ports on APP nodes also sonar.search.port and sonar.search.host MUST be configured on each Search node with the host and HTTP port of the current node - use Elasticsearch high level rest client - use in EsTester - use as primary es client - use indices api to get all indices name instead of cluster api - use cluster health api to check cluster state - support raw requests for 'nodes/_stats' and '_cluster/stats' - support raw requests for 'indices/_stats' - leave netty4plugin as testCompile dependency it is used in UTs - all ES non-test calls go through EsClient class - add rest client ES profiling
pirms 4 gadiem
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. description = 'Code shared between the Web Server and the Compute Engine'
  2. sonar {
  3. properties {
  4. property 'sonar.projectName', "${projectTitle} :: Server :: Common"
  5. }
  6. }
  7. dependencies {
  8. // please keep the list grouped by configuration and ordered by name
  9. api 'org.apache.commons:commons-email'
  10. api 'commons-io:commons-io'
  11. api 'commons-lang:commons-lang'
  12. api 'com.google.guava:guava'
  13. api 'org.slf4j:slf4j-api'
  14. api 'com.squareup.okhttp3:okhttp'
  15. api 'org.elasticsearch.client:elasticsearch-rest-high-level-client'
  16. api 'org.sonarsource.api.plugin:sonar-plugin-api'
  17. api project(':server:sonar-db-dao')
  18. api project(':server:sonar-db-migration')
  19. api project(':server:sonar-process')
  20. api project(':sonar-core')
  21. api project(':sonar-markdown')
  22. api project(':sonar-ws')
  23. compileOnlyApi 'com.google.code.findbugs:jsr305'
  24. testImplementation 'org.elasticsearch.plugin:transport-netty4-client'
  25. testImplementation 'ch.qos.logback:logback-core'
  26. testImplementation 'com.google.code.findbugs:jsr305'
  27. testImplementation 'org.subethamail:subethasmtp'
  28. testImplementation 'com.squareup.okhttp3:mockwebserver'
  29. testImplementation 'com.squareup.okhttp3:okhttp-tls'
  30. testImplementation 'com.squareup.okio:okio'
  31. testImplementation 'com.tngtech.java:junit-dataprovider'
  32. testImplementation 'junit:junit'
  33. testImplementation 'org.apache.logging.log4j:log4j-api'
  34. testImplementation 'org.apache.logging.log4j:log4j-core'
  35. testImplementation 'org.assertj:assertj-core'
  36. testImplementation 'org.hamcrest:hamcrest-core'
  37. testImplementation 'org.junit.jupiter:junit-jupiter-api'
  38. testImplementation 'org.mockito:mockito-core'
  39. testImplementation 'org.sonarsource.api.plugin:sonar-plugin-api-test-fixtures'
  40. testImplementation testFixtures(project(':server:sonar-db-dao'))
  41. testImplementation testFixtures(project(':server:sonar-webserver-auth'))
  42. testImplementation testFixtures(project(':server:sonar-webserver-es'))
  43. testImplementation project(':sonar-plugin-api-impl')
  44. testImplementation project(':sonar-testing-harness')
  45. testFixturesApi 'junit:junit'
  46. testFixturesApi testFixtures(project(':server:sonar-db-dao'))
  47. testFixturesCompileOnly 'com.google.code.findbugs:jsr305'
  48. testFixturesImplementation 'org.elasticsearch.plugin:transport-netty4-client'
  49. testFixturesImplementation 'org.codelibs.elasticsearch.module:analysis-common'
  50. testFixturesImplementation 'org.codelibs.elasticsearch.module:reindex'
  51. testFixturesImplementation 'org.elasticsearch:mocksocket'
  52. testFixturesImplementation 'org.junit.jupiter:junit-jupiter-api'
  53. testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
  54. testRuntimeOnly 'org.junit.vintage:junit-vintage-engine'
  55. }
  56. test {
  57. // Enabling the JUnit Platform (see https://github.com/junit-team/junit5-samples/tree/master/junit5-migration-gradle)
  58. useJUnitPlatform()
  59. }