You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of the switch case, one could register smaller "SyncAction" instances that would take care of a given descriptor, and consume it.
In the end, if consumers where still present, a warning or error would be thrown (meaning we didn't take into consideration all of the changes). This would prevent the use of that nasty boilerplate switch case, which is half idiotic, but that hopefully does the trick of forcing you to take into consideration all of the changes.
Also, this would allow logs to be made, as one of the methods of the smaller SyncAction would be a description of what it did, e.g. the milestone descriptor changes on an ACTask, you would have a SyncAction that consumed that event and whose description of its actions would be something like, created/reused the corresponding milestone number/url on the GH side.
Anyway, this for now is a question for future processing, because the SyncAction might have more requirements that haven't been fully envisioned now (depending on the problems that will arise in the future). And also because there are some other issues to solve with this approach, like how to take care of the state that should be shared between SyncAction's e.g. a Issue that is to be edited/created on the GH side should be shared. It isn't clear yet on how this and other issues are going to be solved with this approach (and now the priority is to put this to work).
The text was updated successfully, but these errors were encountered:
Instead of the switch case, one could register smaller "SyncAction" instances that would take care of a given descriptor, and consume it.
In the end, if consumers where still present, a warning or error would be thrown (meaning we didn't take into consideration all of the changes). This would prevent the use of that nasty boilerplate switch case, which is half idiotic, but that hopefully does the trick of forcing you to take into consideration all of the changes.
Also, this would allow logs to be made, as one of the methods of the smaller SyncAction would be a description of what it did, e.g. the milestone descriptor changes on an ACTask, you would have a SyncAction that consumed that event and whose description of its actions would be something like, created/reused the corresponding milestone number/url on the GH side.
Anyway, this for now is a question for future processing, because the SyncAction might have more requirements that haven't been fully envisioned now (depending on the problems that will arise in the future). And also because there are some other issues to solve with this approach, like how to take care of the state that should be shared between SyncAction's e.g. a Issue that is to be edited/created on the GH side should be shared. It isn't clear yet on how this and other issues are going to be solved with this approach (and now the priority is to put this to work).
The text was updated successfully, but these errors were encountered: