FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

New ScheduledV2Event implementation by peniakoff · Pull Request #480 · aws/aws-lambda-java-libs · GitHub

New ScheduledV2Event implementation - #480

Open
peniakoff wants to merge 11 commits into
aws:mainfrom
peniakoff:develop
Open

New ScheduledV2Event implementation#480
peniakoff wants to merge 11 commits into
aws:mainfrom
peniakoff:develop

Conversation

Copy link
Copy Markdown

and fix for APIGatewayV2CustomAuthorizerEventTest when running on the non-US locale machine.

Issue #, if available:

No. 479: #479

Description of changes:

New Java class ScheduledV2Event has been added. Additionally change is related to APIGatewayV2CustomAuthorizerEventTest which didn't pass on non-US locale Java machine. Now default locale for both tests from this class are running under US-en locale.

Target (OCI, Managed Runtime, both):

both

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

and fix for APIGatewayV2CustomAuthorizerEventTest when running on the non-US locale machine

smirnoal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

please add a test to aws-lambda-java-tests covering this event

@@ -0,0 +1,366 @@
/*

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

please update the header to

/*
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
SPDX-License-Identifier: Apache-2.0
*/


@BeforeAll
static void beforeAll() {
Locale.setDefault(new Locale("en", "US"));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

thanks for this

Copy link
Copy Markdown
Author

@smirnoal, done with my last commit.

smirnoal requested review from andclt and msailes May 7, 2024 14:13
import java.util.List;

/**
* represents a scheduled V2 event

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Can you add a link to the documentation in the header please.


private String region;

private String detail;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I think we (AWS) needs to validate that there will be no events where detail will be anything other than a String for scheduled task use cases.

msailes commented Jun 24, 2024

Copy link
Copy Markdown
Contributor

We also probably want to consider how we explain the difference between ScheduledEvent and ScheduledV2Event. Are we deprecating ScheduledEvent?

Copy link
Copy Markdown
Author

PR updated. Sorry for delay.

* @see Object#toString()
*/
@Override
public String toString() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

https://projectlombok.org/features/Data includes toString, hashcode and equals, you can remove those, and the clone method.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Done.


/**
* Represents a Scheduled V2 event sent to Lambda
* <a href="https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-property-function-schedulev2.html">ScheduleV2</a>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I think this is a link to the wrong page.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This one should be more valid. 😉

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL