Page MenuHomeDevCentral

Create PHP event type classes to map JSON payload
Needs ReviewPublic

Authored by aceppaluni on Oct 25 2024, 17:14.
Tags
None
Referenced Files
F3907745: D3560.id9360.diff
Wed, Dec 18, 11:03
F3907526: D3560.id9360.diff
Wed, Dec 18, 09:53
F3907525: D3560.id9179.diff
Wed, Dec 18, 09:52
F3907524: D3560.id9148.diff
Wed, Dec 18, 09:52
F3907523: D3560.id9149.diff
Wed, Dec 18, 09:52
Unknown Object (File)
Sun, Dec 15, 04:03
Unknown Object (File)
Fri, Dec 13, 09:24
Unknown Object (File)
Fri, Dec 13, 01:58
Subscribers
None

Details

Reviewers
dereckson
Summary

Allows for decoding Json payload to existing classes

Test Plan

Tested using JsonMapper tool

Diff Detail

Repository
rKERUALD Keruald libraries development repository
Lint
Lint Warnings
SeverityLocationCodeMessage
Warninggithub/src/Events/AlpBH.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Warninggithub/src/Events/AlpCommitsH.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Warninggithub/src/Events/AutoMerge.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Warninggithub/src/Events/Label.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Warninggithub/src/Events/License.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Warninggithub/src/Events/Links.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Warninggithub/src/Events/Milestone.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Warninggithub/src/Events/Organization.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Warninggithub/src/Events/PullRequest.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Warninggithub/src/Events/PullRequestOpened.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Warninggithub/src/Events/PushEvent.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Warninggithub/src/Events/Repo.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Warninggithub/src/Events/User.php:1PHPCS.W.PSR1.Files.SideEffects.FoundWithSymbolsPSR1.Files.SideEffects.FoundWithSymbols
Unit
No Test Coverage
Branch
gitHubEvClasses
Build Status
Buildable 5649
Build 5931: arc lint + arc unit

Event Timeline

aceppaluni created this revision.

Updated php class files to resolve php lint issue

dereckson retitled this revision from created php event type classes to map Json payload to Create PHP event type classes to map JSON payload.Oct 25 2024, 22:19
dereckson edited the summary of this revision. (Show Details)
github/src/Events/AlpBH.php
9

What means AlpBH?

github/src/Events/PullRequest.php
7

When you're in the same namespace, you can directly use a class without any need to import it before.

Now, that makes me thing: perhaps it would be convenient to get a separation between base types (User, Repo) and events (Push, PullRequest)?

github/src/Events/PushEvent.php
24

What means AlpCommitsH?

Updates Alp file names and correct php files for class mapping

Rebased. Improved classes with feedback from tests.