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

Deployment changes and a few QoL changes #12

Merged
merged 2 commits into from
Feb 2, 2023
Merged

Conversation

andygello555
Copy link
Owner

No description provided.

- Added the error and started templates which are both new txt based templates (01/02/2023 - 10:35:17)
- Renamed Context.HTML to Context.Execute as it now can call either Template.HTML or Template.Text (01/02/2023 - 10:35:51)
- Added Text as a new TemplateBufferContentType (01/02/2023 - 10:36:17)
- Moved all implementations of email.Context to contexts.go (01/02/2023 - 10:42:28)
- Template.Template is now the new parsedType which can store a reference to both a parsed HTML template and a parsed text template (01/02/2023 - 12:00:28)
- parsedTemplate.Execute will call the execute method of the set parsed template (01/02/2023 - 12:01:05)
- Renamed Template.HTML to Execute and it now can also execute text templates along with HTML templates (01/02/2023 - 12:15:17)
- Added the Template.SendAsyncAndConsume method for use cases where we want to send an email asynchronously and continue doing other stuff (01/02/2023 - 13:33:07)
- The StartedContext and ErrorContext will probably need to exist within the main package so that we can pass a ScoutState instance to them (01/02/2023 - 14:51:22)
- Added new interfaces for reading and writing to PathsToBytes. These are PathsToBytesInterface, PathsToBytesReader, PathsToBytesWriter, and PathsToBytesReadWriter. This is so I could create another type similar to the existing PathsToBytes that writes to a zip archive for email sending in StartedContext and ErrorContext (01/02/2023 - 15:55:12)
- Added the ScoutState.LoadFrom and ScoutState.SaveTo methods which can be given a PathsToBytesReader and a PathsToBytesWriter respectively to load/save a ScoutState to (01/02/2023 - 15:56:37)
- StartedContext should now be finished and ready for implementation in the Scout procedure #8 (01/02/2023 - 16:34:37)
- Added a check to Part.Encoder which stops zip attachment from being re-archived (01/02/2023 - 16:35:28)
- Email.AddPart now checks whether an encoded attachment exceeds the max number of bytes for an attachment. If this is the case and Part.DropIfBig is not set then an error will be returned, otherwise the Part will not be added to the Email silently (02/02/2023 - 10:48:39)
- Added the Finished TemplatePath and the FinishedContext (02/02/2023 - 10:49:04)
- Moved all the PathsToBytes stuff to a new file in main along with some further documentation on the new PathsToBytes interface introduced previously (02/02/2023 - 10:59:08)
- Moved all cached field types and symbols to the new cached_fields.go file in main (02/02/2023 - 11:32:59)
- Implemented sends for all the new templates into the Scout procedure (02/02/2023 - 12:31:31)
- Fully implemented the Finished template (02/02/2023 - 13:43:17)
- Periodic tasks are now registered from the config using a new field within TaskConfig called PeriodicTaskSignatures (02/02/2023 - 14:24:02)
- Updates to tasks.StartServer to display registered tasks + updates to errors (02/02/2023 - 14:51:04)
@andygello555 andygello555 self-assigned this Feb 2, 2023
@andygello555 andygello555 linked an issue Feb 2, 2023 that may be closed by this pull request
25 tasks
@andygello555 andygello555 merged commit c009194 into main Feb 2, 2023
@andygello555 andygello555 deleted the 8-deployment branch February 2, 2023 14:56
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.

Deploy to KeyBank VM (most likely)
1 participant