Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Path in views re-creation in init.sh is incorrect #2

Open
kandre opened this issue Nov 11, 2021 · 0 comments
Open

Path in views re-creation in init.sh is incorrect #2

kandre opened this issue Nov 11, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@kandre
Copy link
Collaborator

kandre commented Nov 11, 2021

I think that views re-creation in init.sh at line 84 does not work properly:

QWAT_REPO="$(git rev-parse --show-toplevel)/qwat-data-model"
PGSERVICE=${PGSERVICE} SRID=${SRID} ${QWAT_REPO}/ordinary_data/views/rewrite_views.sh

Indeeed, the command $(git rev-parse --show-toplevel)/qwat-data-model will be incorrect anyway, either:

  • using QWAT repository which includes the datamodel and executing the script from QWAT folder, the command above returns: %some_path%/QWAT/qwat-data-model but in such case de the datamodel is named data-model
  • using qwat-data-model repository, the command above returns:
    %some_path%/qwat-data-model/qwat-data-model
  • Using QWAT repository and executing the script from a parent directory returns
    fatal: Not a git repository (or any of the parent directories): .git

The only way I found to get it work is by using QWAT project and renaming data-model folder to qwat-data-model.

I suggests it should work either by using QWAT or qwat-data-model repositories.

@kandre kandre changed the title Views re-creation in init.sh does not work properly Path in views re-creation in init.sh is incorrect Nov 11, 2021
@ponceta ponceta added the bug Something isn't working label Nov 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants