Skip to content

Commit

Permalink
Disable traversal tests in 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
pluma4345 committed Jun 5, 2023
1 parent 7b82407 commit 36615fc
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 9 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ This driver uses semantic versioning:
- A change in the major version (e.g. 1.Y.Z -> 2.0.0) indicates _breaking_
changes that require changes in your code to upgrade.

## [Unreleased]

## Changed

- Added note that Simple Queries traversals are removed in ArangoDB 3.12.

## [8.3.0] - 2023-05-11

## Fixed
Expand Down
8 changes: 4 additions & 4 deletions src/collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1124,8 +1124,8 @@ export type SimpleQueryFulltextOptions = {
/**
* Options for performing a graph traversal.
*
* @deprecated Simple Queries have been deprecated in ArangoDB 3.4 and can be
* replaced with AQL queries.
* @deprecated Simple Queries have been deprecated in ArangoDB 3.4 and are
* no longer supported in ArangoDB 3.12. They can be replaced with AQL queries.
*/
export type TraversalOptions = {
/**
Expand Down Expand Up @@ -3417,8 +3417,8 @@ export interface EdgeCollection<T extends Record<string, any> = any>
* properties (e.g. a document from this collection).
* @param options - Options for performing the traversal.
*
* @deprecated Simple Queries have been deprecated in ArangoDB 3.4 and can be
* replaced with AQL queries.
* @deprecated Simple Queries have been deprecated in ArangoDB 3.4 and are
* no longer supported in ArangoDB 3.12. They can be replaced with AQL queries.
*
* @example
* ```js
Expand Down
4 changes: 2 additions & 2 deletions src/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1774,8 +1774,8 @@ export class Graph {
* @param startVertex - Document `_id` of a vertex in this graph.
* @param options - Options for performing the traversal.
*
* @deprecated Simple Queries have been deprecated in ArangoDB 3.4 and can be
* replaced with AQL queries.
* @deprecated Simple Queries have been deprecated in ArangoDB 3.4 and are
* no longer supported in ArangoDB 3.12. They can be replaced with AQL queries.
*
* @example
* ```js
Expand Down
4 changes: 3 additions & 1 deletion src/test/15-edge-collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { Database } from "../database";
import { DocumentMetadata } from "../documents";
import { config } from "./_config";

const describePre312 = config.arangoVersion < 31200 ? describe : describe.skip;

describe("EdgeCollection API", function () {
const name = `testdb_${Date.now()}`;
let system: Database, db: Database;
Expand Down Expand Up @@ -173,7 +175,7 @@ describe("EdgeCollection API", function () {
expect(doc._to).to.equal(data._to);
});
});
describe("edgeCollection.traversal", () => {
describePre312("edgeCollection.traversal", () => {
let knows: EdgeCollection;
beforeEach(async () => {
let person: DocumentCollection;
Expand Down
4 changes: 3 additions & 1 deletion src/test/18-graph-edges.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Database } from "../database";
import { Graph } from "../graph";
import { config } from "./_config";

const describePre312 = config.arangoVersion < 31200 ? describe : describe.skip;

describe("Manipulating graph edges", function () {
const dbName = `testdb_${Date.now()}`;
const graphName = `testgraph_${Date.now()}`;
Expand Down Expand Up @@ -136,7 +138,7 @@ describe("Manipulating graph edges", function () {
expect(info.edgeDefinitions.length).to.equal(0);
});
});
describe("graph.traversal", () => {
describePre312("graph.traversal", () => {
beforeEach(async () => {
const knows = graph.edgeCollection("knows");
const person = graph.vertexCollection("person");
Expand Down
4 changes: 3 additions & 1 deletion src/test/20-graph-edge-collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import { DocumentMetadata } from "../documents";
import { GraphEdgeCollection } from "../graph";
import { config } from "./_config";

const describePre312 = config.arangoVersion < 31200 ? describe : describe.skip;

describe("GraphEdgeCollection API", function () {
const dbName = `testdb_${Date.now()}`;
let system: Database, db: Database;
Expand Down Expand Up @@ -116,7 +118,7 @@ describe("GraphEdgeCollection API", function () {
expect(doc._to).to.equal(data._to);
});
});
describe("edgeCollection.traversal", () => {
describePre312("edgeCollection.traversal", () => {
beforeEach(async () => {
await collection.collection.import([
{ _from: "person/Alice", _to: "person/Bob" },
Expand Down

0 comments on commit 36615fc

Please sign in to comment.