Skip to content

Commit

Permalink
Initial version of Cloud Console and IDP modified for Cloud Console (#…
Browse files Browse the repository at this point in the history
…298)

* feat(ui)!: first snapshot of working admin panel

BREAKING CHANGE: New client, additional option in fetcher, ui for new microservice

* feat: add idp changes to this branch, user suspend system, migrations update

* fix: add missing authorization check on thumbnail download endpoint (#248)

* fix: param OpenAPI docs (#249)

* fix(conversion): mosaic S3 key (#253)

* refactor(api): stylecheck suggestions (#255)

* feat: PDF segmentation - viewer uses 4x less memory on mobile (#254)

* feat(conversion): add mobile optimization to PDF pipeline

* feat: working implementation with API endpoints

* fix(api): OpenAPI docs

* chore: revert unnecessary changes

* fix(api): OpenAPI docs

* docs: update DEVELOPMENT.md

* chore: rename to segmentation

* chore: update OpenAPI docs

* fix: revert DTO changes

* chore: update OpenAPI docs

* fix(migrations): file header

* chore(ui): add PDFProps field

* feat: use ImageMagick to generate PDF thumbnails as JPEG

* chore: generate OpenAPI docs

* chore: enrich S3Object with more metadata + dynamic params (#258)

* chore: enrich S3Object

* fix: router params

* fix: router params

* fix: error checking

* feat: enrich snapshot.mosaic field

* chore: improve S3Object data structure

* chore: improve S3Object data structure - part 2 (#259)

feat: further enrichment of snapshot.original field with more properties (see JSON below)
feat: further enrichment of snapshot.preview field with more properties (see JSON below)
feat: further enrichment of snapshot.segmentation field with more properties (see JSON below)
feat: further enrichment of snapshot.mosaic field with more properties (see JSON below)
refactor: clients on API microservice look the same like other microservices (preparing for deduplication)

* fix: perform an apt-get update before installing packages (#260)

To prevent using outdated links to debian packages that were last refreshed during the docker build, perform an apt-update at the start.

* feat: reprocess endpoint (#262)

* feat(api): endpoint to reprocess a file

* refactor(api): no naked return

* refactor(api): don't mark folders as rejected

* fix: set snapshot.task_id to NULL when deleting a task

* chore: format code

* chore: fix linter error

* feat(api): check task status on reprocess (#263)

* fix(api): support mosaic without preview (#264)

* feat: use bild (#268)

* feat(mosaic): use bild

* chore(conversion): format code

* refactor(mosaic): delete not needed type conversion

* feat(conversion): use bild

* refactor(mosaic): remove more unnecessary type conversions

* fix: hybrid integration of bild & ImageMagick (#269)

* fix: hybrid integration of bild and ImageMagick

* chore: format code

* fix: add support for .tif extension

* fix: various issues

* fix: base mosaic on preview

* fix(webdav): make MKCOL function as mkdir -p (#271)

* refactor(ui): add missing permission functions (#261)

* feat(conversion): automatically trigger mosaic (#276)

* feat(conversion): automatically trigger mosaic

* refactor(conversion): adjustments

* refactor(conversion): no need for a separate function

* fix(conversion): delete output files correctly

* fixup! fix(conversion): delete output files correctly

* fix(conversion): correctly handle forwarding in pipelines

* feat: users management almost complete, getting data from admin microservice also works

* feat: generic confirmation and rename modals for admin privileges management

* feat(ui)!: first snapshot of working admin panel

BREAKING CHANGE: New client, additional option in fetcher, ui for new microservice

* feat: add idp changes to this branch, user suspend system, migrations update

* feat: users management almost complete, getting data from admin microservice also works

* feat: generic confirmation and rename modals for admin privileges management

* feat: Rename states

* feat: Detailed views for organizations and users

* feat: final v1 of admin panel front and IdP

* feat: Add version routers for each component and handle it properly on UI, Pagination option to disable rewind and jump to last buttons

* fix: remove dev url from config

* feat: Rename service to console

* feat: Initial user will be admin, Make console panel searchable

* fix: Fix issues mentioned by Anass

* fix: fix linter issue

* fix: fix linter issue v2

* fix: fix linter issue v3

---------

Co-authored-by: Anass Bouassaba <ebouassaba@gmail.com>
Co-authored-by: Daniël Sonck <daniel@sonck.nl>
  • Loading branch information
3 people authored Sep 4, 2024
1 parent 8be7c16 commit f90dad9
Show file tree
Hide file tree
Showing 77 changed files with 7,136 additions and 369 deletions.
3 changes: 3 additions & 0 deletions api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ func main() {
health := router.NewHealthRouter()
health.AppendRoutes(v2)

version := router.NewVersionRouter()
version.AppendRoutes(app)

filesGroup := v2.Group("files")
files := router.NewFileRouter()
files.AppendNonJWTRoutes(filesGroup)
Expand Down
41 changes: 41 additions & 0 deletions api/router/version_router.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Copyright 2024 Mateusz Kaźmierczak.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the GNU Affero General Public License v3.0 only, included in the file
// licenses/AGPL.txt.

package router

import (
"github.com/gofiber/fiber/v2"
)

type VersionRouter struct{}

func NewVersionRouter() *VersionRouter {
return &VersionRouter{}
}

func (r *VersionRouter) AppendRoutes(g fiber.Router) {
g.Get("/version", r.GetVersion)
}

// GetVersion godoc
//
// @Summary Get
// @Description Get
// @Tags Version
// @Id get_version
// @Produce json
// @Success 200 {string} string "{Version}"
// @Failure 503 {object} errorpkg.ErrorResponse
// @Router /health [get]
func (r *VersionRouter) GetVersion(c *fiber.Ctx) error {
return c.JSON(map[string]string{
"version": "2.1.0",
})
}
3 changes: 3 additions & 0 deletions conversion/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ func main() {
})
healthRouter.AppendRoutes(v2)

version := router.NewVersionRouter()
version.AppendRoutes(app)

pipelineRouter := router.NewPipelineRouter(router.NewPipelineRouterOptions{
Scheduler: scheduler,
})
Expand Down
41 changes: 41 additions & 0 deletions conversion/router/version_router.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Copyright 2024 Mateusz Kaźmierczak.
//
// Use of this software is governed by the Business Source License
// included in the file licenses/BSL.txt.
//
// As of the Change Date specified in that file, in accordance with
// the Business Source License, use of this software will be governed
// by the GNU Affero General Public License v3.0 only, included in the file
// licenses/AGPL.txt.

package router

import (
"github.com/gofiber/fiber/v2"
)

type VersionRouter struct{}

func NewVersionRouter() *VersionRouter {
return &VersionRouter{}
}

func (r *VersionRouter) AppendRoutes(g fiber.Router) {
g.Get("/version", r.GetVersion)
}

// GetVersion godoc
//
// @Summary Get
// @Description Get
// @Tags Version
// @Id get_version
// @Produce json
// @Success 200 {string} string "{Version}"
// @Failure 503 {object} errorpkg.ErrorResponse
// @Router /health [get]
func (r *VersionRouter) GetVersion(c *fiber.Ctx) error {
return c.JSON(map[string]string{
"version": "2.1.0",
})
}
Loading

0 comments on commit f90dad9

Please sign in to comment.