Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.

feat: adding AdSlot and Newsletter service#5

Merged
rrmanalo623 merged 17 commits into
mainfrom
MT-916
Apr 19, 2022
Merged

feat: adding AdSlot and Newsletter service#5
rrmanalo623 merged 17 commits into
mainfrom
MT-916

Conversation

@rrmanalo623
Copy link
Copy Markdown
Contributor

No description provided.

@rrmanalo623 rrmanalo623 changed the title MT-916 feat: adding AdSlot and Newsletter service Mar 24, 2022
Copy link
Copy Markdown

@tzanetti-liveintent tzanetti-liveintent left a comment

Choose a reason for hiding this comment

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

Mostly looks good. Left a few questions to be addressed.
I think one use case it would be good to get on test is to update sizes as well.

run: composer i
- name: Run linter
run: ./vendor/bin/php-cs-fixer fix --dry-run --diff --format=checkstyle | cs2pr
run: ./vendor/bin/php-cs-fixer fix --dry-run --diff --format=checkstyle --allow-risky=yes | cs2pr
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Question: this flag sounds risky =)
Why do we need it? And is this standard for company or just this one time off?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure if we can handle it differently or not, but that's why I added it.

Comment thread README.md

For detailed documentation see [here](https://laravel.com/docs/8.x/http-client#testing).

## Development
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great job splitting up docs!

? json_decode(collect($request->data())->flip()->first(), true)
: $request->data();
// Initialize data when not json
$data = $request->data();
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Q: Do you think we'll ever need to do that again? If so, then maybe move this to a common/shared function?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I haven't seen another place that we do this. I'm not sure if we'll ever need to do this again.

Comment thread tests/Fixtures.php
/** @return string */
public static function adSlotHash()
{
return '60220c073cc811ec941d0ab243175da9';
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Q: Is any of this data depended on ids being stored in database or are these mocked?

Comment thread tests/Services/AdSlotServiceTest.php
Comment thread tests/Services/AuthServiceTest.php
'client_id' => env('CLIENT_ID'),
'client_secret' => env('CLIENT_SECRET'),
'base_url' => env('LI_BASE_URL', 'http://localhost:33001'),
'base_url' => env('LI_BASE_URL', 'http://localhost:3000'),
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Same question here

Copy link
Copy Markdown

@tzanetti-liveintent tzanetti-liveintent left a comment

Choose a reason for hiding this comment

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

LGTM

@rrmanalo623 rrmanalo623 merged commit ecb6c3b into main Apr 19, 2022
@rrmanalo623 rrmanalo623 deleted the MT-916 branch April 19, 2022 13:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants