1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/doc/known-issues.md
Sylvain 66f81a975e WIP: array of items
Migration from cart_items:{reservation:{}, subscription:{}, ...}
to cart_items:{items:[{reservation:{}, ...}], ...}
2021-05-19 18:12:52 +02:00

2.7 KiB

Known issues

This document is listing common known issues.

Production issues may also apply to development environments.

Table of contents
  1. Development
  2. Production

Development

  • When starting the Ruby on Rails server (eg. foreman s) you may receive the following error:

      worker.1 | undefined method `dump' for nil:NilClass
      worker.1 | (erb):19:in `<main>'
      worker.1 | ...lib/rails/secrets.rb...:in `block in parse'
      ...
      web.1    | (erb):19:in `<main>': undefined method `dump' for nil:NilClass (NoMethodError)
      web.1    | exited with code 1
    

    This may happen when the .env file is missing. To solve this issue copy env.example to .env. This is required before the first start.

  • When running the tests suite with scripts/tests.sh, all tests may fail with errors similar to the following:

      Error:
      ...
      ActiveRecord::InvalidForeignKey: PG::ForeignKeyViolation: ERROR:  insert or update on table "..." violates foreign key constraint "fk_rails_..."
      DETAIL:  Key (group_id)=(1) is not present in table "...".
      : ...
          test_after_commit (1.0.0) lib/test_after_commit/database_statements.rb:11:in `block in transaction'
          test_after_commit (1.0.0) lib/test_after_commit/database_statements.rb:5:in `transaction'
    

    This is due to an ActiveRecord behavior witch disable referential integrity in PostgreSQL to load the fixtures. PostgreSQL will prevent any users to disable referential integrity on the fly if they doesn't have the SUPERUSER role. To fix that, logon as the postgres user and run the PostgreSQL shell (see the postgresql documentation for instructions). Then, run the following command (replace sleede with your test database user, as specified in your database.yml):

      ALTER ROLE sleede WITH SUPERUSER;
    

    DO NOT do this in a production environment, unless you know what you're doing: this could lead to a serious security issue.

Production

  • Due to a stripe limitation, you won't be able to create plans longer than one year.

  • In some cases, the invoices won't be generated. This can be due to the image included in the invoice header not being supported. To fix this issue, change the image in the administrator interface (manage the invoices / invoices settings). See this thread for more info.

  • In the excel exports, if the cells expected to contain dates are showing strange numbers, check that you have correctly configured the EXCEL_DATE_FORMAT variable.