Comments (6)
Hi - I can takes this. Adding validations to the datetime objects on the models looks like the best way to go. Are there specific ranges for each of the objects? Here is the list of objects with datetimes (ex. timestamps) and the validation
CaseCase
- birth_month_year_youth —> range from 1989 to today
- court_report_due_date —> ignored column, ok not to have a maximum due_date?
- court_report_submitted_at —> This is set when the case is created, max should be date case created?
- date_in_care —> range is from 1989 to today
CaseContact
- occurred_at —> already validates can’t be in future
CourtDate
- date —> max date a year from now, should dates in the past be permitted?
- court_report_due_date —> not sure
learning_hours
- occurred_at —> already a max, assume ok with out a minimum
MileageRate
- effective_date —> max date be in the past
OtherDuties
- occurred_at —> should max date be in the past?
PlacementsStartedAt
- Placement_started_at —> not clear the usage
User
- date_of_birth —> range from 1920 to today
UserReminderTime
- case_contact_types —>
- no_contact_made —>
from casa.
I want this
from casa.
CourtDate
date —> max date a year from now, should dates in the past be permitted?
yes, past permitted
from casa.
Placement_started_at —> not clear the usage
this should be roughly the same range as the date in care range, placement is where the youth lives and with whom
from casa.
court_report_due_date —> ignored column, ok not to have a maximum due_date?
continue ignoring ignored columns
from casa.
@ryoung-sf hey, sorry bout taking to long to get back to you on this. are you still interested in doing this? I think there should be enough info now?
from casa.
Related Issues (20)
- ☂️ Frontend Styling and UX Fixes
- Fix "New Fund Request" Styling
- Improve Volunteer Assignment when creating a new case
- Make the "Impersonate" banner more prominent
- Fix Contact Type Select Styles
- New Casa Case form not fields not saving on error HOT 2
- Fix "Manage Volunteers" Styling on `/volunteers` page
- Disable expenses page when orgs have no expenses
- Add "Enable Other Duties" as Organization Feature flag to Edit Organization
- Improve case selection UX on `/casa_cases` page for admins with many cases HOT 1
- Uncap submissions for Additional Expenses and improve UX
- Improve datatable display on `/supervisors` page
- Improve discoverabilty for creating and editting Court Report Topics
- Case Contact Form Update: Change Section "1. Select the relevant cases" picker to Dropdown style like in Section 2. Select All Contact Types
- Add Back and Forth Buttons to Case Contact Form
- allow organizations to set standard placements
- add seed data for placements
- add creating, editing and displaying placements to casa case show page
- create standard court orders on a per organization basis
- ☂️ Standard Court Orders
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from casa.