Skip to content

Commit

Permalink
Merge branch 'main' into cypress_fix_drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
dariober committed Dec 17, 2024
2 parents 276d71a + 387b544 commit 0de1fc8
Show file tree
Hide file tree
Showing 30 changed files with 631 additions and 186 deletions.
66 changes: 33 additions & 33 deletions packages/apollo-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $ npm install -g @apollo-annotation/cli
$ apollo COMMAND
running command...
$ apollo (--version)
@apollo-annotation/cli/0.2.1 linux-x64 node-v20.17.0
@apollo-annotation/cli/0.2.2 linux-x64 node-v20.17.0
$ apollo --help [COMMAND]
USAGE
$ apollo COMMAND
Expand Down Expand Up @@ -108,7 +108,7 @@ EXAMPLES
```

_See code:
[src/commands/assembly/add-from-fasta.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/assembly/add-from-fasta.ts)_
[src/commands/assembly/add-from-fasta.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/assembly/add-from-fasta.ts)_

## `apollo assembly add-from-gff INPUT-FILE`

Expand Down Expand Up @@ -144,7 +144,7 @@ EXAMPLES
```

_See code:
[src/commands/assembly/add-from-gff.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/assembly/add-from-gff.ts)_
[src/commands/assembly/add-from-gff.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/assembly/add-from-gff.ts)_

## `apollo assembly check`

Expand Down Expand Up @@ -186,7 +186,7 @@ EXAMPLES
```

_See code:
[src/commands/assembly/check.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/assembly/check.ts)_
[src/commands/assembly/check.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/assembly/check.ts)_

## `apollo assembly delete`

Expand Down Expand Up @@ -214,7 +214,7 @@ EXAMPLES
```

_See code:
[src/commands/assembly/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/assembly/delete.ts)_
[src/commands/assembly/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/assembly/delete.ts)_

## `apollo assembly get`

Expand All @@ -236,7 +236,7 @@ DESCRIPTION
```

_See code:
[src/commands/assembly/get.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/assembly/get.ts)_
[src/commands/assembly/get.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/assembly/get.ts)_

## `apollo assembly sequence`

Expand Down Expand Up @@ -271,7 +271,7 @@ EXAMPLES
```

_See code:
[src/commands/assembly/sequence.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/assembly/sequence.ts)_
[src/commands/assembly/sequence.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/assembly/sequence.ts)_

## `apollo change get`

Expand All @@ -295,7 +295,7 @@ DESCRIPTION
```

_See code:
[src/commands/change/get.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/change/get.ts)_
[src/commands/change/get.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/change/get.ts)_

## `apollo config [KEY] [VALUE]`

Expand Down Expand Up @@ -347,7 +347,7 @@ EXAMPLES
```

_See code:
[src/commands/config.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/config.ts)_
[src/commands/config.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/config.ts)_

## `apollo feature add-child`

Expand Down Expand Up @@ -378,7 +378,7 @@ EXAMPLES
```

_See code:
[src/commands/feature/add-child.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/feature/add-child.ts)_
[src/commands/feature/add-child.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/feature/add-child.ts)_

## `apollo feature check`

Expand Down Expand Up @@ -411,7 +411,7 @@ EXAMPLES
```

_See code:
[src/commands/feature/check.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/feature/check.ts)_
[src/commands/feature/check.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/feature/check.ts)_

## `apollo feature copy`

Expand Down Expand Up @@ -442,7 +442,7 @@ EXAMPLES
```

_See code:
[src/commands/feature/copy.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/feature/copy.ts)_
[src/commands/feature/copy.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/feature/copy.ts)_

## `apollo feature delete`

Expand All @@ -466,7 +466,7 @@ DESCRIPTION
```

_See code:
[src/commands/feature/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/feature/delete.ts)_
[src/commands/feature/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/feature/delete.ts)_

## `apollo feature edit`

Expand Down Expand Up @@ -508,7 +508,7 @@ EXAMPLES
```

_See code:
[src/commands/feature/edit.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/feature/edit.ts)_
[src/commands/feature/edit.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/feature/edit.ts)_

## `apollo feature edit-attribute`

Expand Down Expand Up @@ -548,7 +548,7 @@ EXAMPLES
```

_See code:
[src/commands/feature/edit-attribute.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/feature/edit-attribute.ts)_
[src/commands/feature/edit-attribute.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/feature/edit-attribute.ts)_

## `apollo feature edit-coords`

Expand Down Expand Up @@ -582,7 +582,7 @@ EXAMPLES
```

_See code:
[src/commands/feature/edit-coords.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/feature/edit-coords.ts)_
[src/commands/feature/edit-coords.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/feature/edit-coords.ts)_

## `apollo feature edit-type`

Expand All @@ -606,7 +606,7 @@ DESCRIPTION
```

_See code:
[src/commands/feature/edit-type.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/feature/edit-type.ts)_
[src/commands/feature/edit-type.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/feature/edit-type.ts)_

## `apollo feature get`

Expand Down Expand Up @@ -640,7 +640,7 @@ EXAMPLES
```

_See code:
[src/commands/feature/get.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/feature/get.ts)_
[src/commands/feature/get.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/feature/get.ts)_

## `apollo feature get-id`

Expand Down Expand Up @@ -668,7 +668,7 @@ EXAMPLES
```

_See code:
[src/commands/feature/get-id.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/feature/get-id.ts)_
[src/commands/feature/get-id.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/feature/get-id.ts)_

## `apollo feature import INPUT-FILE`

Expand Down Expand Up @@ -699,7 +699,7 @@ EXAMPLES
```

_See code:
[src/commands/feature/import.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/feature/import.ts)_
[src/commands/feature/import.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/feature/import.ts)_

## `apollo feature search`

Expand Down Expand Up @@ -750,7 +750,7 @@ EXAMPLES
```

_See code:
[src/commands/feature/search.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/feature/search.ts)_
[src/commands/feature/search.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/feature/search.ts)_

## `apollo file delete`

Expand All @@ -777,7 +777,7 @@ EXAMPLES
```

_See code:
[src/commands/file/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/file/delete.ts)_
[src/commands/file/delete.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/file/delete.ts)_

## `apollo file download`

Expand Down Expand Up @@ -805,7 +805,7 @@ EXAMPLES
```

_See code:
[src/commands/file/download.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/file/download.ts)_
[src/commands/file/download.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/file/download.ts)_

## `apollo file get`

Expand All @@ -832,7 +832,7 @@ EXAMPLES
```

_See code:
[src/commands/file/get.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/file/get.ts)_
[src/commands/file/get.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/file/get.ts)_

## `apollo file upload INPUT-FILE`

Expand Down Expand Up @@ -869,7 +869,7 @@ EXAMPLES
```

_See code:
[src/commands/file/upload.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/file/upload.ts)_
[src/commands/file/upload.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/file/upload.ts)_

## `apollo help [COMMANDS]`

Expand Down Expand Up @@ -916,7 +916,7 @@ EXAMPLES
```

_See code:
[src/commands/jbrowse/get-config.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/jbrowse/get-config.ts)_
[src/commands/jbrowse/get-config.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/jbrowse/get-config.ts)_

## `apollo jbrowse set-config INPUTFILE`

Expand Down Expand Up @@ -945,7 +945,7 @@ EXAMPLES
```

_See code:
[src/commands/jbrowse/set-config.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/jbrowse/set-config.ts)_
[src/commands/jbrowse/set-config.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/jbrowse/set-config.ts)_

## `apollo login`

Expand Down Expand Up @@ -984,7 +984,7 @@ EXAMPLES
```

_See code:
[src/commands/login.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/login.ts)_
[src/commands/login.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/login.ts)_

## `apollo logout`

Expand Down Expand Up @@ -1014,7 +1014,7 @@ EXAMPLES
```

_See code:
[src/commands/logout.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/logout.ts)_
[src/commands/logout.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/logout.ts)_

## `apollo refseq add-alias INPUT-FILE`

Expand Down Expand Up @@ -1045,7 +1045,7 @@ EXAMPLES
```

_See code:
[src/commands/refseq/add-alias.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/refseq/add-alias.ts)_
[src/commands/refseq/add-alias.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/refseq/add-alias.ts)_

## `apollo refseq get`

Expand Down Expand Up @@ -1077,7 +1077,7 @@ EXAMPLES
```

_See code:
[src/commands/refseq/get.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/refseq/get.ts)_
[src/commands/refseq/get.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/refseq/get.ts)_

## `apollo status`

Expand All @@ -1099,7 +1099,7 @@ DESCRIPTION
```

_See code:
[src/commands/status.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/status.ts)_
[src/commands/status.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/status.ts)_

## `apollo user get`

Expand Down Expand Up @@ -1135,6 +1135,6 @@ EXAMPLES
```

_See code:
[src/commands/user/get.ts](https://github.com/GMOD/Apollo3/blob/v0.2.1/packages/apollo-cli/src/commands/user/get.ts)_
[src/commands/user/get.ts](https://github.com/GMOD/Apollo3/blob/v0.2.2/packages/apollo-cli/src/commands/user/get.ts)_

<!-- commandsstop -->
2 changes: 1 addition & 1 deletion packages/apollo-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apollo-annotation/cli",
"version": "0.2.1",
"version": "0.2.2",
"description": "Command line interface for the Apollo annotation server",
"repository": {
"type": "git",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
RefSeqDocument,
} from '@apollo-annotation/schemas'
import {
makeGFF3Feature,
annotationFeatureToGFF3,
splitStringIntoChunks,
} from '@apollo-annotation/shared'
import gff from '@gmod/gff'
Expand Down Expand Up @@ -179,7 +179,7 @@ export class ExportService {
const refSeqNames = Object.fromEntries(
refSeqs.map((refSeq) => [refSeq._id, refSeq.name]),
)
const gff3Feature = makeGFF3Feature(
const gff3Feature = annotationFeatureToGFF3(
flattened as unknown as AnnotationFeatureSnapshot,
undefined,
refSeqNames,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ import { FeaturesService } from './features.service'
useFactory: (connection: Connection, checksService: ChecksService) => {
FeatureSchema.plugin(idValidator, { connection })
const runChecksOnDocument = async (doc: FeatureDocument) => {
await checksService.checkFeatures([doc])
await checksService.checkFeatures([doc], false)
}
const runChecksOnDocuments = async (docs: FeatureDocument[]) => {
await checksService.checkFeatures(docs)
await checksService.checkFeatures(docs, false)
}
FeatureSchema.post('save', runChecksOnDocument)
FeatureSchema.post('updateOne', runChecksOnDocument)
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo-common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apollo-annotation/common",
"version": "0.2.1",
"version": "0.2.2",
"repository": {
"type": "git",
"url": "https://github.com/GMOD/Apollo3.git",
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo-mst/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apollo-annotation/mst",
"version": "0.2.1",
"version": "0.2.2",
"main": "./dist/index.js",
"scripts": {
"build": "tsc"
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo-schemas/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apollo-annotation/schemas",
"version": "0.2.1",
"version": "0.2.2",
"main": "./dist/index.js",
"scripts": {
"build": "tsc"
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo-shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apollo-annotation/shared",
"version": "0.2.1",
"version": "0.2.2",
"main": "./dist/index.js",
"scripts": {
"build": "yarn clean && tsc --build",
Expand Down
Loading

0 comments on commit 0de1fc8

Please sign in to comment.