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

FarhanNurzi/P2PS-1329/Advertisers ads are duplicating in other advertiser profile after manual refresh #9569

Conversation

farhan-nurzi-deriv
Copy link
Contributor

Changes:

  • setting counterparty_id in advertiser-page.jsx instead of in app.jsx
  • fetch payment methods list when mounting my-profile/payment-methods component
  • use counterparty_id if advertiser_details_id is not available to block the user

Screenshots:

Please provide some screenshots of the change.

@vercel
Copy link

vercel bot commented Aug 4, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
deriv-app ✅ Ready (Inspect) Visit Preview Oct 16, 2023 5:30am

@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2023

A production App ID was automatically generated for this PR. (log)

Click here to copy & paste above information.
- **PR**: [https://github.com/binary-com/deriv-app/pull/9569](https://github.com/binary-com/deriv-app/pull/9569)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-farhan-nurzi-deriv-p2ps-1329-issues-w-a5c1e3.binary.sx?qa_server=red.binaryws.com&app_id=32226
    - **Original**: https://deriv-app-git-fork-farhan-nurzi-deriv-p2ps-1329-issues-w-a5c1e3.binary.sx
- **App ID**: `32226`

@github-actions
Copy link
Contributor

github-actions bot commented Aug 4, 2023

🚨 Lighthouse report for the changes in this PR:

Category Score
🔺 Performance 15
🟧 Accessibility 75
🟢 Best practices 92
🟧 SEO 85
🟢 PWA 90

Lighthouse ran with https://deriv-app-git-fork-farhan-nurzi-deriv-p2ps-1329-issues-w-a5c1e3.binary.sx/

@coveralls
Copy link

coveralls commented Aug 4, 2023

Coverage Status

coverage: 25.601% (+0.04%) from 25.559% when pulling 036d752 on farhan-nurzi-deriv:P2PS-1329/issues-when-refreshing-the-page into 29ee48f on binary-com:master.

SendbirdChat: jest.fn().mockReturnValue({}),
}));

jest.mock('@sendbird/chat/message', () => ({
Copy link
Contributor

Choose a reason for hiding this comment

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

why are we mocking the sendbird chat here? is it causing issues?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah it causing issue because of Jim's PR #9378. @jim-deriv can we maybe find a solution for this? we put this in many test files.

Copy link
Contributor

Choose a reason for hiding this comment

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

Hi @farhan-nurzi-deriv , @ameerul-deriv, If you guys think a global mock is the best way to go, please go for it, my initial view was that the global mock will create mocks for everything, even when they're not needed. But if that makes your work easier, then please do so. But bare in mind that this is the same pattern we use for @deriv/* packages that we mock, we don't do global mocks (not saying that it's the best, but it's what we currently do, so you guys should feel free to innovate).

@@ -29,4 +29,5 @@ module.exports = {
'<rootDir>/coverage/lcov-report',
'<rootDir>/dist',
],
transformIgnorePatterns: ['/node_modules/(?!@sendbird/chat).+\\.js$'],
Copy link
Contributor Author

Choose a reason for hiding this comment

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

To fix @sendbird/chat error when running jest

@farhan-nurzi-deriv farhan-nurzi-deriv force-pushed the P2PS-1329/issues-when-refreshing-the-page branch from e291129 to d967bf5 Compare August 4, 2023 07:33
jim-deriv
jim-deriv previously approved these changes Aug 4, 2023
jim-deriv
jim-deriv previously approved these changes Aug 4, 2023
@sonarcloud
Copy link

sonarcloud bot commented Aug 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.7% 0.7% Duplication

@gitguardian
Copy link

gitguardian bot commented Oct 4, 2023

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id Secret Commit Filename
- Generic High Entropy Secret c6bd7f1 nx.json View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

Our GitHub checks need improvements? Share your feedbacks!

farrah-deriv
farrah-deriv previously approved these changes Oct 4, 2023
@sonarcloud
Copy link

sonarcloud bot commented Oct 16, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
5.3% 5.3% Duplication

@hirad-deriv hirad-deriv merged commit a52c4e9 into binary-com:master Oct 17, 2023
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants