Coder Social home page Coder Social logo

api-server's People

Contributors

almereyda avatar codeho avatar dacianavram avatar ingocollatz avatar jaensen avatar samuelandert avatar

Stargazers

 avatar

Watchers

 avatar  avatar

api-server's Issues

Drift between migrations container and source manifests

Describe the bug

The api-server migrations declared in

- "src/api-db-migrations/**"

and executed in

COPY ./src/api-db-migrations/ /docker-entrypoint-initdb.d/

are manually prepared for their execution environment

envsubst < /docker-entrypoint-initdb.d/0.1.504-fix1.sql > /docker-entrypoint-initdb.d/0.1.504-fix1.envsubst
mv /docker-entrypoint-initdb.d/0.1.504-fix1.envsubst /docker-entrypoint-initdb.d/0.1.504-fix1.sql
ls /docker-entrypoint-initdb.d/*.sql | xargs -I% sh -c 'psql $\{CONNECTION_STRING_ROOT\} < %'

and would not pick up newer migrations, which are not explicitly cared for in Dockerfile.migrations. This is in contrast to the initialisation container of the local development environment, which improves on this with dynamically replacing environmental variables within https://github.com/CirclesUBI/land-local/blob/3cb9f3085b63d584eb63667723bdc35821c31fab/modules/api-db-init/seed.sh#L18

ls src/api-db-migrations/*.sql | xargs -I% sh -c 'psql ${CONNECTION_STRING_ROOT} << envsubst < %'

Additionally, a recent changes in the code have led to some drift between the migrations container and its source SQL declarations, which results in all 0.1.504-fix1 rules not to be applied anymore.

To Reproduce

Steps to reproduce the behavior:

  1. Set up a clean deployment environment for api-server. Take example in the workload-*-api-server manifests.
  2. Let the cluster reconciliate the database migrations into the database.
  3. Find all statements from 0.1.504-fix1 missing in the logs of the initialisation container.
    api-server-migrations.txt

Expected behavior

All migrations are loaded when initialising a database from them.

Additional context

We can consider this Dockerfile here as a base layer for the fixture installation in land-local.

Node 16 deprecation

Is your feature request related to a problem? Please describe.

Node 16 LTS is determined to enter EOL on 11.09.2023.

Describe the solution you'd like

Migrate to Node 18 by September 11, 2023.

Describe alternatives you've considered

The alternative is to run from an unsupported code base.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.