Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 24 additions & 15 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@
"build": {
"dockerfile": "Dockerfile"
},

"features": {
"ghcr.io/devcontainers/features/go:1": {
"version": "1.25.1"
}
},

"customizations": {
"vscode": {
"extensions": [
Expand All @@ -22,18 +20,27 @@
"settings": {
"go.useLanguageServer": true,
"go.lintTool": "golangci-lint-v2",
"go.lintFlags": ["--path-mode=abs", "--fast-only"],
"go.lintFlags": [
"--path-mode=abs",
"--fast-only"
],
"go.formatTool": "custom",
"go.alternateTools": {
"customFormatter": "golangci-lint-v2"
},
"go.formatFlags": ["fmt", "--stdin"],
"go.formatFlags": [
"fmt",
"--stdin"
],
"go.testOnSave": true,
"editor.formatOnSave": true,
"editor.tabSize": 4,
"editor.insertSpaces": true,
"editor.detectIndentation": true,
"editor.rulers": [80, 120],
"editor.rulers": [
80,
120
],
"files.exclude": {
"**/.git": true,
"**/.svn": true,
Expand All @@ -46,29 +53,31 @@
}
}
},

"mounts": [
"source=shared-binaries,target=/shared/bin,type=volume",
"source=pruefungsplanung-semester,target=/home/vscode/semester,type=volume",
// "source=${localEnv:HOME}/semester,target=/home/vscode/semester,type=bind,consistency=cached",
"source=${localEnv:HOME}/.gitconfig,target=/home/vscode/.gitconfig,type=bind,consistency=cached",
"source=${localEnv:HOME}/.ssh,target=/home/vscode/.ssh,type=bind,consistency=cached",
"source=${localEnv:HOME}/.plexams.yml,target=/home/vscode/.plexams.yml,type=bind,consistency=cached",
"source=${localEnv:HOME}/semester,target=/home/vscode/semester,type=bind,consistency=cached"
"source=${localEnv:HOME}/.plexams.yml,target=/home/vscode/.plexams.yml,type=bind,consistency=cached"
],
"forwardPorts": [
8080,
8081,
8082
],

"forwardPorts": [8080, 8081, 8082],
"portsAttributes": {
"8080": {
"label": "Application",
"onAutoForward": "notify"
}
},

"postCreateCommand": "sudo chown -R vscode:vscode /shared/bin && go mod download",

"remoteEnv": {
"GOBIN": "/shared/bin",
"PATH": "${containerEnv:PATH}:/shared/bin"
},

"runArgs": ["--network=host"]
}
"runArgs": [
"--network=host"
]
}
1 change: 0 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ var (
Long: `Planing exams.`,
Run: func(cmd *cobra.Command, args []string) {
plexams := initPlexamsConfig()
plexams.PrintWorkflow()
graph.StartServer(plexams, viper.GetString("server.port"))
},
PersistentPreRun: func(cmd *cobra.Command, args []string) {
Expand Down
1 change: 0 additions & 1 deletion cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ var serverCmd = &cobra.Command{
Long: `Start GraphQL-Server.`,
Run: func(cmd *cobra.Command, args []string) {
plexams := initPlexamsConfig()
plexams.PrintWorkflow()
graph.StartServer(plexams, viper.GetString("server.port"))
},
}
Expand Down
2 changes: 2 additions & 0 deletions graph/constraints.graphqls
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
scalar Time

extend type Query {
constraintForAncode(ancode: Int!): Constraints
zpaExamsToPlanWithConstraints: [ZPAExamWithConstraints!]!
Expand Down
2 changes: 1 addition & 1 deletion graph/constraints.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion graph/exam.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading