[zanata/zanata-server] 35e0e5: Log more information when TM result row has an une...

GitHub noreply at github.com
Tue Jun 9 04:12:39 UTC 2015


  Branch: refs/heads/new-tm-endpoints-rhbz1209669
  Home:   https://github.com/zanata/zanata-server
  Commit: 35e0e53e0e9c07e8108663a924800acb3a91bb5b
      https://github.com/zanata/zanata-server/commit/35e0e53e0e9c07e8108663a924800acb3a91bb5b
  Author: David Mason <drdmason at gmail.com>
  Date:   2015-06-09 (Tue, 09 Jun 2015)

  Changed paths:
    M zanata-war/src/main/java/org/zanata/service/impl/TranslationMemoryServiceImpl.java

  Log Message:
  -----------
  Log more information when TM result row has an unexpected entity type.

When lucene indexes are in a bad state, search can return a row that
does not contain one of the expected entity types. This ensures that
valid rows will still be returned in results, and an error with more
information will be logged when a bad row is encountered.


  Commit: 276f310a6561d2be8860583b8f0bdcff8b0dbe9d
      https://github.com/zanata/zanata-server/commit/276f310a6561d2be8860583b8f0bdcff8b0dbe9d
  Author: David Mason <drdmason at gmail.com>
  Date:   2015-06-09 (Tue, 09 Jun 2015)

  Changed paths:
    M zanata-war/src/main/java/org/zanata/search/LevenshteinTokenUtil.java
    M zanata-war/src/test/java/org/zanata/search/LevenshteinTokenUtilTest.java

  Log Message:
  -----------
  Fall back on stop-words comparison for similarity when nothing else is available.

A divide-by-zero condition was generating a NaN value for similarity for strings
that contain only stop-words. When that condition would be met, this will instead
repeat the comparison without ignoring stop-words, then finally just return 0.0
if there are still no tokens to compare.


  Commit: db71115b4b8aba64bcc859f010f4cc8675eff3e2
      https://github.com/zanata/zanata-server/commit/db71115b4b8aba64bcc859f010f4cc8675eff3e2
  Author: David Mason <drdmason at gmail.com>
  Date:   2015-06-09 (Tue, 09 Jun 2015)

  Changed paths:
    M zanata-war/src/main/java/org/zanata/search/LevenshteinTokenUtil.java

  Log Message:
  -----------
  Change token regex for similarity comparison to pick up more cases.

The regex was not picking up punctuation that was not followed by whitespace.
There are still some cases that it is not covering. I have kept this change
small, and the other changes can be made when there is more time for testing.


  Commit: 70cbb12a6cb5b51efb17ca558621fff666bd121a
      https://github.com/zanata/zanata-server/commit/70cbb12a6cb5b51efb17ca558621fff666bd121a
  Author: David Mason <drdmason at gmail.com>
  Date:   2015-06-09 (Tue, 09 Jun 2015)

  Changed paths:
    M zanata-war/src/main/webapp/app/js/app.js
    M zanata-war/src/main/webapp/app/js/templates.js
    M zanata-war/src/main/webapp/app/maps/app.js.map

  Log Message:
  -----------
  Update zanata-spa to commit 883b7b9071ef42c5e021c62905d311e985ec8596


Compare: https://github.com/zanata/zanata-server/compare/c70fe523816a...70cbb12a6cb5


More information about the zanata-commits mailing list