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

[backend] Domain Name Creation Error (#9457) #9475

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

SarahBocognano
Copy link
Member

Proposed changes

  • Make domain checker more permissive

Related issues

@SarahBocognano SarahBocognano added the filigran team use to identify PR from the Filigran team label Dec 30, 2024
@SarahBocognano SarahBocognano self-assigned this Dec 30, 2024
Copy link

codecov bot commented Jan 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.33%. Comparing base (e4728c3) to head (ab3176e).
Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9475      +/-   ##
==========================================
- Coverage   65.34%   65.33%   -0.01%     
==========================================
  Files         624      624              
  Lines       59697    59697              
  Branches     6687     6686       -1     
==========================================
- Hits        39011    39006       -5     
- Misses      20686    20691       +5     

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

Copy link
Member

@aHenryJard aHenryJard left a comment

Choose a reason for hiding this comment

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

Can you add the 2 domain name from issue in the list of tested domain name ?

mvix.온라인.한국
mvix.xn--oi2b61z32a.xn--3e0b707e

in

it('should match a valid domain pattern', () => {


it('Domain-name regex parsing should be perfomant', async () => {
const startDate = Date.now();
// eslint-disable-next-line no-plusplus
Copy link
Member

Choose a reason for hiding this comment

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

you can eventually use i+=1 to avoid this eslint disable, but it's not a blocker for me.

});

it('should not match a valid domain pattern', () => {
expect('invalid_domain.12_3').not.toMatch(domainChecker);
expect('invalid_domain').not.toMatch(domainChecker);
Copy link
Member

Choose a reason for hiding this comment

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

we don't need at least one '.' in the domain name ?

Copy link
Member

@aHenryJard aHenryJard 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 to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
filigran team use to identify PR from the Filigran team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants