Git Product home page Git Product logo

asylum_support's Introduction

Asylum Support

A web application for tracking asylum cases built around the needs of Khora Asylum Support Team. It provides basic features like creating a case with metadata about the participants, adding files, and tracking activity.

Built with

Running locally

Required Ruby version can be found in .tool-versions (and installed with asdf)

  1. bundle install
  2. rails db:create & rails db:migrate
  3. rails s

History (written 2024)

This app was initially created by volunteers from Khora. It has been running in production on Heroku for many years without issue, but the code is a bit old and there are no tests, which is bad.

asylum_support's People

Contributors

nickpapacostas avatar melomys avatar

Watchers

James Cloos avatar

Forkers

melomys

asylum_support's Issues

Unaccompanied minors page 500s on prod

Error log is:

2024-05-30T02:18:32.402838+00:00 app[web.1]: [ca4cba7f-13c2-4158-aced-21db620958a5] ActionView::Template::Error (undefined method `full_name' for nil):
2024-05-30T02:18:32.402838+00:00 app[web.1]: [ca4cba7f-13c2-4158-aced-21db620958a5]     24:           <td><%= display_datetime(first_minor.date_of_birth) %></td>
2024-05-30T02:18:32.402839+00:00 app[web.1]: [ca4cba7f-13c2-4158-aced-21db620958a5]     25:           <td><%= first_minor.phone_number %></td>
2024-05-30T02:18:32.402839+00:00 app[web.1]: [ca4cba7f-13c2-4158-aced-21db620958a5]     26:           <td><%= first_minor.email %></td>
2024-05-30T02:18:32.402839+00:00 app[web.1]: [ca4cba7f-13c2-4158-aced-21db620958a5]     27:           <td><%= c.caseworker.full_name %></td>
2024-05-30T02:18:32.402839+00:00 app[web.1]: [ca4cba7f-13c2-4158-aced-21db620958a5]     28:           <td><%= display_datetime(c.updated_at) %></td>
2024-05-30T02:18:32.402840+00:00 app[web.1]: [ca4cba7f-13c2-4158-aced-21db620958a5]     29:         </tr>
2024-05-30T02:18:32.402840+00:00 app[web.1]: [ca4cba7f-13c2-4158-aced-21db620958a5]     30:       <% end %>

app/views/members/unaccompanied_minors.html.erb:

        <tr>
          <td><%= link_to(c.id, case_path(c)) %></td>
          <td><%= first_minor.full_name %></td>
          <td><%= display_datetime(first_minor.date_of_birth) %></td>
          <td><%= first_minor.phone_number %></td>
          <td><%= first_minor.email %></td>
          <td><%= c.caseworker.full_name %></td>
          <td><%= display_datetime(c.updated_at) %></td>
        </tr>

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.