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

TASK-362 Use excel spreadsheet to import and export shifts #291

Merged
merged 2 commits into from
Mar 22, 2021

Conversation

kaplonpaulina
Copy link
Collaborator

@kaplonpaulina kaplonpaulina commented Mar 20, 2021

Nie mam pomysłu na nazwę jako, że wszystkie dobre są już zajęte xd
PS, defaultowe wartości sprawdźcie.
Jeśli chodzi o testy, to powinnam czekać na refaktor, jak chyba wszystkie inne PR?

Jak mnie nie będzie na stand-upie, to mnie obudźcie. Idę spać.

@cypress
Copy link

cypress bot commented Mar 20, 2021



Test summary

229 0 0 0Flakiness 1


Run details

Project NurseScheduling
Status Passed
Commit 1bd4923
Started Mar 22, 2021 7:17 PM
Ended Mar 22, 2021 7:20 PM
Duration 03:50 💡
OS Linux Ubuntu - 20.04
Browser Custom chrome 88

View run in Cypress Dashboard ➡️


Flakiness

cypress/integration/e2e/app-error-handling/schedule-errors.spec.ts Flakiness
1 Schedule errors > Should throw error after adding error user

This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

@kaplonpaulina kaplonpaulina changed the title in/export shifts TASK-362 in/export shifts Mar 20, 2021
Copy link
Contributor

@pectom pectom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jakieś zmiany do wprowadzenia obgadane z @Qwebeck

Copy link
Contributor

@pectom pectom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mam kilka uwag :)

src/logic/schedule-exporter/schedule-export.logic.ts Outdated Show resolved Hide resolved
src/logic/schedule-exporter/schedule-export.logic.ts Outdated Show resolved Hide resolved
src/logic/schedule-parser/shifts-proper-info.parser.ts Outdated Show resolved Hide resolved
src/logic/schedule-parser/shifts-proper-info.parser.ts Outdated Show resolved Hide resolved
src/logic/schedule-parser/shifts-proper-info.parser.ts Outdated Show resolved Hide resolved
}

private parseShiftCode(shiftRow: string[], name: string): string {
if (shiftRow[1]) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Te wszystkie indeksy do stałej.
#człowiekstała
Proponuję umieścić je w enumie, tak żeby nazwa kolumny odpowiadała jej indeksowi :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wymyśliłam , że tabloica będzie bezpieczniejsza, niż enum
zweryfikujcie

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oki, może być, ale moim zdaniem enum lepszy :)

}

private parseShiftTo(shiftRow: string[], name: string): number {
if (shiftRow[3]) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To musimy obgadać

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

co konkretnie?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

W złym miejscu dałem ten komentarz. Chodzi o to, że dzień zaczyna się od 7 i żadna zmiana nie może jej przecinać np. nie może być zmiany 5-12, ale to już nie w tym PR.

@prenc prenc changed the title TASK-362 in/export shifts TASK-362 Use excel spreadsheet to import and export shifts Mar 21, 2021
Copy link
Contributor

@prenc prenc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Zarequestuj jak poprawisz uwagi od chłopaków

Copy link
Contributor

@pectom pectom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Świetna robota zią :)

@pectom pectom merged commit 8fa31cc into develop Mar 22, 2021
@pectom pectom deleted the task-362-parsing-shifts branch March 22, 2021 19:22
prenc added a commit that referenced this pull request Mar 26, 2021
* TASK-321 Introduce workers' teams (#293)

* TASK-362 Use excel spreadsheet to import and export shifts (#291)

* TASK-408 Add information about worker team to management table (#298)

* TASK-408 Adds information about worker group to managament table and allows to change worker group

* Fixes z-index

* Adds groups sotring

* TASK-411 Export with worker groups (#299)

* Change error folding section display (#308)

* Fix corrupted schedule test case (#310)

* TASK-330 Track app version and store it presistently  (#273)

* TASK-327 Use worker shifts from state (#264)

* TASK-394 New free shifts (#304)

* TASK-410 Not working switch between actual and base versions & TASK-420 always same default group in worker drawer (#312)

* TASK-423 sticky month header (#314)

* TASK-416 Sort workers in groups  && TASK-406 Display worker markers on schedule (#309)

* TASK-409 Show import bug messages for all import buttons (#307)

* TASK-423 Remove background of schedule's header  (#315)

* First push <3

* Done?.

* Ready for review.

* Ready for review.

* Unreal changes.

* Removed comments, reverted to develop styling.

* Epic changes.

* HEIGHT FIXED.

Co-authored-by: Tomasz Pęcak <[email protected]>

* TASK-422 Fixes export of worker calendar (#313)

* TASK-425 disables edit buttons (#318)

* TASK-386 Enhance comprehensibility of error messages (#302)

* Add mapping to uid for employee info contractType and workerGroup keys (#311)

* Add bunch of prerelease fixes (#321)

* TASK-419 Style non-working shifts consistently (#316)

* TASK-412 Bug: drawer button does not stick bottom  (#325)

* TASK-386 Enhance comprehensibility of error messages (follow-up) (#326)

* Fix shift types that was not defined (#327)

* Fix cell input (#328)

* Fix onBlur when no value provided (#329)

* Fix logs from shifts (#331)

* Fix work norm calculation for not working shifts (#332)

Co-authored-by: Bohdan <[email protected]>
Co-authored-by: Paulina <[email protected]>
Co-authored-by: Tomasz Pęcak <[email protected]>
Co-authored-by: Maciej Bielech <[email protected]>
Co-authored-by: Jan Ślażyński <[email protected]>
Co-authored-by: Ehevi <[email protected]>
Co-authored-by: Szymon Fugas <[email protected]>
github-actions bot pushed a commit that referenced this pull request Mar 26, 2021
## [1.0.2](v1.0.1...v1.0.2) (2021-03-26)

### Performance Improvements

* **App:** Release v2.0.0 ([#323](#323)) ([cdc701d](cdc701d)), closes [#293](#293) [#291](#291) [#298](#298) [#299](#299) [#308](#308) [#310](#310) [#273](#273) [#264](#264) [#304](#304) [#312](#312) [#314](#314) [#309](#309) [#307](#307) [#315](#315) [#313](#313) [#318](#318) [#302](#302) [#311](#311) [#321](#321) [#316](#316) [#325](#325) [#326](#326) [#327](#327) [#328](#328) [#329](#329) [#331](#331) [#332](#332)
github-actions bot pushed a commit that referenced this pull request Mar 26, 2021
## [1.0.2](v1.0.1...v1.0.2) (2021-03-26)

### Performance Improvements

* **App:** Release v2.0.0 ([#323](#323)) ([cdc701d](cdc701d)), closes [#293](#293) [#291](#291) [#298](#298) [#299](#299) [#308](#308) [#310](#310) [#273](#273) [#264](#264) [#304](#304) [#312](#312) [#314](#314) [#309](#309) [#307](#307) [#315](#315) [#313](#313) [#318](#318) [#302](#302) [#311](#311) [#321](#321) [#316](#316) [#325](#325) [#326](#326) [#327](#327) [#328](#328) [#329](#329) [#331](#331) [#332](#332)
prenc added a commit that referenced this pull request Mar 26, 2021
* TASK-321 Introduce workers' teams (#293)

* TASK-362 Use excel spreadsheet to import and export shifts (#291)

* TASK-408 Add information about worker team to management table (#298)

* TASK-408 Adds information about worker group to managament table and allows to change worker group

* Fixes z-index

* Adds groups sotring

* TASK-411 Export with worker groups (#299)

* Change error folding section display (#308)

* Fix corrupted schedule test case (#310)

* TASK-330 Track app version and store it presistently  (#273)

* TASK-327 Use worker shifts from state (#264)

* TASK-394 New free shifts (#304)

* TASK-410 Not working switch between actual and base versions & TASK-420 always same default group in worker drawer (#312)

* TASK-423 sticky month header (#314)

* TASK-416 Sort workers in groups  && TASK-406 Display worker markers on schedule (#309)

* TASK-409 Show import bug messages for all import buttons (#307)

* TASK-423 Remove background of schedule's header  (#315)

* First push <3

* Done?.

* Ready for review.

* Ready for review.

* Unreal changes.

* Removed comments, reverted to develop styling.

* Epic changes.

* HEIGHT FIXED.

Co-authored-by: Tomasz Pęcak <[email protected]>

* TASK-422 Fixes export of worker calendar (#313)

* TASK-425 disables edit buttons (#318)

* TASK-386 Enhance comprehensibility of error messages (#302)

* Add mapping to uid for employee info contractType and workerGroup keys (#311)

* Add bunch of prerelease fixes (#321)

* TASK-419 Style non-working shifts consistently (#316)

* TASK-412 Bug: drawer button does not stick bottom  (#325)

* TASK-386 Enhance comprehensibility of error messages (follow-up) (#326)

* Fix shift types that was not defined (#327)

* Fix cell input (#328)

* Fix onBlur when no value provided (#329)

* Fix logs from shifts (#331)

* Fix work norm calculation for not working shifts (#332)

Co-authored-by: Bohdan <[email protected]>
Co-authored-by: Paulina <[email protected]>
Co-authored-by: Tomasz Pęcak <[email protected]>
Co-authored-by: Maciej Bielech <[email protected]>
Co-authored-by: Jan Ślażyński <[email protected]>
Co-authored-by: Ehevi <[email protected]>
Co-authored-by: Szymon Fugas <[email protected]>
github-actions bot pushed a commit that referenced this pull request Mar 26, 2021
## [1.0.2](v1.0.1...v1.0.2) (2021-03-26)

### Performance Improvements

* **App:** Release v2.0.0 ([#323](#323)) ([cdc701d](cdc701d)), closes [#293](#293) [#291](#291) [#298](#298) [#299](#299) [#308](#308) [#310](#310) [#273](#273) [#264](#264) [#304](#304) [#312](#312) [#314](#314) [#309](#309) [#307](#307) [#315](#315) [#313](#313) [#318](#318) [#302](#302) [#311](#311) [#321](#321) [#316](#316) [#325](#325) [#326](#326) [#327](#327) [#328](#328) [#329](#329) [#331](#331) [#332](#332)
* **App:** Release v2.0.0 ([#333](#333)) ([230ae80](230ae80)), closes [#293](#293) [#291](#291) [#298](#298) [#299](#299) [#308](#308) [#310](#310) [#273](#273) [#264](#264) [#304](#304) [#312](#312) [#314](#314) [#309](#309) [#307](#307) [#315](#315) [#313](#313) [#318](#318) [#302](#302) [#311](#311) [#321](#321) [#316](#316) [#325](#325) [#326](#326) [#327](#327) [#328](#328) [#329](#329) [#331](#331) [#332](#332)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants