-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Tracker for current/new ideas #4
Comments
Hey @ricardoerl, I like the idea of discussing proposals in this thread, I guess then we can create "feature requests" using the issue template that is already place, so later these can be tracked using Projects. I was thinking on a couple ones
|
I found the registry of residential and mobile phone numbers, with a scrapping script pull the data and save to CSV or JSON to be used or something more simple like a regex function isPhoneNumber(phone) {
const phoneNumberRegex = /^[267]\d{3}-\d{4}$/;
return phoneNumberRegex.test(phone);
} |
Hey @leosuncin, that's a great one. What do you think about integrating both of them? isPhoneNumberVerifies that given Phone Number format is valid
getPhoneNumberDetailsGet phone numbers details using the information provided by SIGET (we can even use the i.e. {
type: 'mobile',
numberingPlan: {
owner: 'CTE TELECOM PERSONAL, S.A. de C.V.',
from: '7740-0000',
to: '7744-9999',
qty: 50000,
resolution: 'T-22-2001',
assignmentDate: '09/01/2001' // we could even use ISO-format
}
} Please let me know if you have any comments or suggestions and we can create a feature request |
I can open a pull request to add the new to functions, but about the scrapping script I have two proposals: Create a new projectDue the different scope of the new challenge would be a good idea create a new repository with the source code, then run it within a CI environment (maybe Github Actions) every month or so, to scrap the data from the SIGET website and store it in a CSV, JSON and SQLite to be consume it later on, this can be done through a web service, hubdb or Github API. Add script to this repositoryAlmost the same above but using only JSON with nanosql to query the data due it works in Node.js and browser. |
@leosuncin I would prefer to keep it under the same repository to take advantage of the infrastructure that is already in place. (This repository is currently using CircleCI) My only concern is related to the way of storing/consuming these resources. ConsumingTo be consumed from an external resourcePros
Cons
To be included within the lib as a minified assetPros
Cons
StoringAt this moment in which we haven't discussed any other feature where we would need to heavy filter/process data, I don't see the need to implement a DB. Instead, I would suggest applying some normalization (we could even use something like normalizr) and make the calculations using plain algorithms. However, if there is any reason why you think we should use a DB, I am open to discuss it. Thank you again for your contribution, I am looking forward to your comments ✌️ |
I'm not sure if normalize the data could help cause the keys are a range 7740-0000-7744-9999. I believe a DB library (like NanoSQL or lowdb) would help to query the data. I don't think the library size could be an issue thanks to bundlers like Rollup, moreover phone number libraries are commonly heavy. The main pain point is the support for frontend and backend environment, file access in browser is not possible (at least not cross-browser) maybe split the data in JSON files by ranges and lazy loading the required files.
|
@leosuncin sounds great! Can you please submit the feature request for both |
Before I forget it 👀 @all-contributors please add @ricardoerl for ideas |
I've put up a pull request to add @ricardoerl! 🎉 |
Hey, @ricardoerl I'd like to add the idea and create the PR to validate a passport: I have thought in the following methods: isPassport(passport, DUI) isPassportFormat(passport) @leosuncin do you know if there any page, repository in which I can check the rules of a passport, or validate that a passport always has the format "A[Your DUI without the validate digit]"? |
I bet there are more ideas on how to keep expanding the library. We can use this issue as initial tracker.
If you like the idea, we can discuss the proposals in the thread and I can update the list here. Then we can migrate the list to the Projects tab or even have it in the readme.
The text was updated successfully, but these errors were encountered: