Repository navigation
add transportation table and creation functionality - #66
Conversation
| @Index('transportations_users_idx', ['userId'], {}) | ||
| @Index(['userId', 'key', 'year'], { unique: true }) | ||
| @Entity('transportations') | ||
| export class Transportation implements IHasUserId { |
There was a problem hiding this comment.
כדאי להוסיף פה fill default year
There was a problem hiding this comment.
ואז יצירת הסעה חדשה לא יצטרכו להכניס שנה?
There was a problem hiding this comment.
כן, וגם יהיה אפשר להוריד את זה מהמערך של הimporter, תראי איך זה בטבלאות אחרות
There was a problem hiding this comment.
בשביל שזה יעבוד צריך לשים מעל זה @beforeCreate @beforeUpdate
| fields: { | ||
| ...generalResourceFieldsTranslation, | ||
| key: 'שילוט', | ||
| year: 'שנה', |
There was a problem hiding this comment.
שנה לא נמצאת כבר בgeneralResourceFieldsTranslation?
| <Route path="student-attendance" element={<StudentAttendanceList />} /> | ||
| </Resource> | ||
| <Resource name="student_klass" {...studentKlass} options={{ menuGroup: 'data' }} icon={WorkspacesIcon} /> | ||
| {transportationOnly && <Resource name="transportation" {...transportation} options={{ menuGroup: 'data' }} icon={DirectionsBusIcon} />} |
There was a problem hiding this comment.
אני לא רואה צורך להשתמש פה במשתנה, ובכל מקרה השם שלו לא נכון
תשימי פה (isTransportation(permissions) !! isAdmin(permissions)) && <Resource
There was a problem hiding this comment.
2 סימני קריאה או אחד בisAdmin(permissions)
There was a problem hiding this comment.
התכוונתי לכתוב || - או ולא סימני קריאה
| filterDefaultValues: { | ||
| year: defaultYearFilter.year, | ||
| }, |
There was a problem hiding this comment.
בבקשה תשימי את זה במשתנה, כמו שיש בשאר הקבצים
| minute: "2-digit", | ||
| }); | ||
| }} | ||
| /> |
There was a problem hiding this comment.
למה לא פשוט text field? זה לא מציג את הערך בצורה טובה?
There was a problem hiding this comment.
ככה זה נראה עם text field -2023-10-01T14:30:00Z
There was a problem hiding this comment.
מענין, איך זה עובד בreport group sessions?
|
|
||
| {isTransportation(permissions) && !!isAdmin(permissions)&& | ||
| <> | ||
| <Resource name="transportation" {...transportation} options={{ menuGroup: 'data' }} icon={DirectionsBusIcon} /> | ||
| </>} | ||
|
|
There was a problem hiding this comment.
אין צורך ב!!
וגם לא לעטוף ב <> </>
| @Index('transportations_users_idx', ['userId'], {}) | ||
| @Index(['userId', 'key', 'year'], { unique: true }) | ||
| @Entity('transportations') | ||
| export class Transportation implements IHasUserId { |
There was a problem hiding this comment.
בשביל שזה יעבוד צריך לשים מעל זה @beforeCreate @beforeUpdate
Same fix as dnd-management-nra#65/#66: - client's healthcheck start_period bumped from 30s to 60s to match server, giving Caddy's independent active health check enough time to confirm the new container before Swarm's start-first update retires the old one. - caddy.reverse_proxy.lb_try_duration/lb_retries added so a request landing on the old container while it drains after SIGQUIT (still "running" in Docker's eyes, but refusing new connections) transparently retries against the healthy upstream instead of surfacing 502/503. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
No description provided.