Sfoglia il codice sorgente

Bump version and update changelog (#142)

Leszek Wiesner 1 anno fa
parent
commit
6f3c654dd6
3 ha cambiato i file con 47 aggiunte e 3 eliminazioni
  1. 44 0
      CHANGELOG.md
  2. 2 2
      package-lock.json
  3. 1 1
      package.json

+ 44 - 0
CHANGELOG.md

@@ -1,3 +1,47 @@
+# 2.3.0
+
+### Features:
+- **Change:**  The video relevance score formula has been updated. Now `Video.publishedBeforeJoystream` can be taken into account when calculating the value of the `newness` parameter. The new formula for `newness` is:
+    ```
+    -(dsPOJ * jcw + dsPBJ * ycw) / (jcw + ycw)
+
+    Where:
+    dsPOJ - days since published on Joystream (Video.createdAt)
+    jcw - joystream creation weight
+    dsPBJ - days since published before Joystream (Video.publishedBeforeJoystream)
+    ycw - YouTube creation weight
+    ```
+
+### Config values:
+- **Change:** `RELEVANCE_WEIGHTS` config value now has a new format:
+    ```diff
+    [
+        1, # newness weight,
+        0.03, # views weight
+        0.3, # comments weight
+        0.5, # reactions weight
+    +   [7,3] # [joystream creation weight, YouTube creation weight]
+    ]
+    ```
+    If the value of `[joystream creation weight, YouTube creation weight]` is not provided, it is set to `[7,3]` by default.
+
+### Schema/API changes:
+- **Change:** `setVideoWeights` operator mutation now accepts 2 new arguments: `joysteamTimestampSubWeight` and `ytTimestampSubWeight`
+
+### Mappings:
+- `videoRelevanceManager` is now used in `processVideoCreatedEvent` to calculate `videoRelevance` (to avoid code duplication)
+
+### DB Optimalizations:
+- Changes in `postgres.conf` to improve query execution time in current production deployments:
+    - Turn off JIT compilation which was usually uneffective
+    - Lower `random_page_cost` to `1.0`, as the database still fits into the memory
+    - Increase `shared_buffers` to `2GB` 
+- New indexes added to `db/migrations/2100000000000-Indexes.js` (`auction_type`, `member_metadata_avatar`, `owned_nft_auction`)
+
+### Fixes:
+- `scripts/generate-schema-file.sh` has been made executable w/o bash to avoid error during docker build
+- The issue w/ _Offchain State_ not being imported if the `export.json` contained empty `update` tables (an error was thrown in this case) has been fixed
+
 # 2.2.0
 
 ### Features:

+ 2 - 2
package-lock.json

@@ -1,12 +1,12 @@
 {
   "name": "orion",
-  "version": "2.2.0",
+  "version": "2.3.0",
   "lockfileVersion": 2,
   "requires": true,
   "packages": {
     "": {
       "name": "orion",
-      "version": "2.2.0",
+      "version": "2.3.0",
       "hasInstallScript": true,
       "dependencies": {
         "@joystream/js": "^1.4.0",

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "orion",
-  "version": "2.2.0",
+  "version": "2.3.0",
   "engines": {
     "node": ">=16"
   },