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

Future actions #167

Merged
merged 20 commits into from
Aug 3, 2023
Merged

Future actions #167

merged 20 commits into from
Aug 3, 2023

Conversation

jasonbornsteinMOOV
Copy link
Contributor

@jasonbornsteinMOOV jasonbornsteinMOOV commented Jul 31, 2023

Changes

Support future-dated actions in ach-test-harness (for use in Staging)

Why Are Changes Being Made

@codecov-commenter
Copy link

codecov-commenter commented Jul 31, 2023

Codecov Report

Patch coverage: 64.15% and project coverage change: +2.35% 🎉

Comparison is base (1d63203) 55.25% compared to head (9e9d352) 57.60%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #167      +/-   ##
==========================================
+ Coverage   55.25%   57.60%   +2.35%     
==========================================
  Files          14       14              
  Lines         628      710      +82     
==========================================
+ Hits          347      409      +62     
- Misses        237      245       +8     
- Partials       44       56      +12     
Files Changed Coverage Δ
pkg/service/environment.go 56.52% <0.00%> (-5.39%) ⬇️
pkg/service/server.go 0.00% <0.00%> (ø)
pkg/service/model_config.go 55.07% <53.06%> (-4.93%) ⬇️
pkg/response/file_transformer.go 70.43% <66.66%> (+1.51%) ⬆️
pkg/response/file_writer.go 62.06% <80.00%> (-1.94%) ⬇️
pkg/response/match/matcher.go 54.34% <88.88%> (-4.10%) ⬇️
pkg/response/batch_mirror.go 71.79% <100.00%> (+48.71%) ⬆️
pkg/response/entry_transformer.go 82.43% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@adamdecaf adamdecaf left a comment

Choose a reason for hiding this comment

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

Looks good so far

README.md Outdated Show resolved Hide resolved
pkg/response/file_transformer.go Outdated Show resolved Hide resolved
pkg/response/file_writer.go Show resolved Hide resolved
@jasonbornsteinMOOV jasonbornsteinMOOV marked this pull request as ready for review August 1, 2023 14:06
pkg/service/model_config.go Outdated Show resolved Hide resolved
pkg/service/model_config.go Outdated Show resolved Hide resolved
pkg/response/file_transformer.go Outdated Show resolved Hide resolved
pkg/response/file_transformer.go Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
pkg/service/model_config.go Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
pkg/service/model_config.go Outdated Show resolved Hide resolved
Comment on lines 36 to 50
/*
* Matching will find at most 2 Actions: 1 Copy Action and 1 Return/Correction Action.
* If the Return/Correction Action as no Delay, the Copy Action will be excluded.
*
* Valid combinations include:
* 1. Copy
* 2. Return/Correction w/ Delay
* 3. Return/Correction w/o Delay
* 4. Copy and Return/Correction w/ Delay
* 5. Nothing
*
* Invalid combinations are:
* 1. Copy + Return/Correction w/o Delay
* 2. Copy w/ Delay (validated when reading configuration)
*/
Copy link
Member

Choose a reason for hiding this comment

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

Did we want to link to the readme in a shorter version of this comment? We need to keep the two in sync since they're so similar.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's not a bad idea. Is there any particular trick to linking in go (like using HTML or a specific tag), or is just "See README.md for the matching rules"?

Copy link
Member

Choose a reason for hiding this comment

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

@jasonbornsteinMOOV
Copy link
Contributor Author

Tested with a live Docker container and FTP client and saw the expected behavior on the "delayed" files

Comment on lines +160 to +167
func (a Action) Context() map[string]log.Valuer {
logFields := log.Fields{}

// Safely retrieve several values that are needed for the debug log below
if a.Delay != nil {
var delayTime = a.Delay.String()
logFields["delay"] = log.String(delayTime)
}
Copy link
Member

Choose a reason for hiding this comment

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

Usually changes like this should be in a separate PR since they're not related to adding delay.

@adamdecaf adamdecaf merged commit 5a78997 into master Aug 3, 2023
6 checks passed
@adamdecaf adamdecaf deleted the future-actions branch August 3, 2023 14:30
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