Skip to content
Snippets Groups Projects
  1. Dec 06, 2023
    • Kurdakov Alexander's avatar
      refactor: remove all privileges from role super · 45ba7392
      Kurdakov Alexander authored and Alexander Kurdakov's avatar Alexander Kurdakov committed
      45ba7392
    • Dmitry Ivanov's avatar
      feat(audit): don't print None values · 2e035654
      Dmitry Ivanov authored
      This patch adds a proper support for auxiliary fields containing `Option<T>`.
      As of now, KV pairs containing `Some(x)` will be printed as just `x`,
      while the ones with `None` won't be printed at all.
      
      Example:
      
      ```rust
      crate::audit!(
          message: "demo audit event",
          title: "example",
          severity: Low,
          test: Some(0u32),
      );
      ```
      
      ```json
      {
        "id": "1.0.1",
        "message": "demo audit event",
        "severity": "low",
        "time": "2023-12-06T17:16:51.085+0300",
        "title": "example",
        "test": "0"
      }
      ```
      
      ```rust
      crate::audit!(
          message: "demo audit event",
          title: "example",
          severity: Low,
          test: None::<i32>,
      );
      ```
      
      ```json
      {
        "id": "1.0.1",
        "message": "demo audit event",
        "severity": "low",
        "time": "2023-12-06T17:16:51.085+0300",
        "title": "example"
      }
      ```
      2e035654
  2. Dec 04, 2023
  3. Dec 03, 2023
  4. Dec 01, 2023
  5. Nov 29, 2023
    • Kurdakov Alexander's avatar
      0c96fceb
    • Dmitry Ivanov's avatar
      feat(audit): implement composite record id · 1340f8a3
      Dmitry Ivanov authored
      Logically, the record id consists of 3 fields:
      * `raft_id` -- raft id of the current node (or `null` if uninitialized);
      * `count` -- in-memory id which is auto incremented for each new record;
      * `gen` -- persistent id which is incremented each time node is started.
      
      However, in practice they are stored inside a global `LogicalClock`.
      
      This is what the record looks like now:
      
      ```json
      {
        "id": "1.0.3",
        "instance_id": "i1",
        "message": "a new instance `i1` joined the cluster",
        "raft_id": "1",
        "severity": "low",
        "time": "2023-11-29T17:07:36.524+0300",
        "title": "join_instance"
      }
      ```
      
      Note how those fields are concatenated using `.`; the resulting
      unique id is represented by a json string type.
      
      Furthermore, since audit record logger now depends on the
      raft machine's state, we decided to move its initialization
      further into the init sequence (postjoin).
      1340f8a3
  6. Nov 28, 2023
  7. Nov 27, 2023
    • Georgy Moshkin's avatar
      test: mark test_script_failure as xfail, because it's too flaky and doesn't... · f1e71e29
      Georgy Moshkin authored
      test: mark test_script_failure as xfail, because it's too flaky and doesn't check for anything we care about
      f1e71e29
    • Georgy Moshkin's avatar
      fix: bug fixed in tarantool · dd5761e8
      Georgy Moshkin authored
      dd5761e8
    • Arseniy Volynets's avatar
      feat: support subqueries for global tables · d1216e7e
      Arseniy Volynets authored and Yaroslav Dynnikov's avatar Yaroslav Dynnikov committed
      - Update sbroad submodule to commit adding support
      for subqueries
      - Add integration tests for sql queries with
      subqueries and global tables
      
      Supported queries:
      - Queries that reference global tables in subqueries:
      ```sql
      select a from segment_t where
      b in (select c + d from global_t)
      ```
      - Queries that read from global tables and use subquery:
      ```sql
      select c from global_t
      where d in (select a from segment_t)
      ```
      
      Note: the support of subqueries applies only to types
      of queries currently supported for global tables.
      Joins, aggregates, except, union all are currently not
      supported for global tables.
      d1216e7e
Loading