refactor(job): Make jobs execution polymorphic instead of relied on plain switch #133

Merged
NaiJi merged 2 commits from jobs-polymorphism into master 2022-10-06 23:01:43 +03:00
Collaborator
  • ClientJob and ToogleJob are now abstract
  • ClientJob declares abstract void execute(final JobsCubit cubit) function
  • Every concrete job inheriting ClientJob is now obligated to implement its own execution
  • Remove condition which made services reload only after ToogleJobs, now services reload after every job execution
  • No more switches by job's type 🎉
- ClientJob and ToogleJob are now abstract - ClientJob declares abstract `void execute(final JobsCubit cubit)` function - Every concrete job inheriting ClientJob is now obligated to implement its own execution - Remove condition which made services reload only after ToogleJobs, now services reload after every job execution - No more switches by job's type 🎉
NaiJi added the
Feature request
label 2022-10-06 22:21:57 +03:00
inex was assigned by NaiJi 2022-10-06 22:21:57 +03:00
NaiJi added 1 commit 2022-10-06 22:21:58 +03:00
NaiJi requested review from inex 2022-10-06 22:22:05 +03:00
NaiJi added 1 commit 2022-10-06 22:46:23 +03:00
inex approved these changes 2022-10-06 22:56:43 +03:00
NaiJi merged commit e619d6351f into master 2022-10-06 23:01:43 +03:00
NaiJi deleted branch jobs-polymorphism 2022-10-06 23:01:50 +03:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: SelfPrivacy/selfprivacy.org.app#133
There is no content yet.