DeviceDetector.NET icon indicating copy to clipboard operation
DeviceDetector.NET copied to clipboard

Update device model database

Open fpl1976 opened this issue 2 years ago • 11 comments

I checked PHP implementation and the mobiles.yml cover a lot more devices. https://github.com/matomo-org/device-detector/blob/master/regexes/device/mobiles.yml

The file used in this library is the same, but it is outdated since August 2021

Is it possible to update with the one listed above?

fpl1976 avatar Jun 21 '22 09:06 fpl1976

May I open a pull-request to update the file? I have it ready and tested locally. I was able to detect some new mobile devices in the market that the previous file was not able to.

fpl1976 avatar Jun 29 '22 14:06 fpl1976

Hi @fpl1976, yes you can contribute to this repo. We will appreciate any contribution. The update will fix this: #54 👍

totpero avatar Jun 30 '22 17:06 totpero

Can you authorize me to create branches and send PRs? Thx!

fpl1976 avatar Jul 07 '22 08:07 fpl1976

Hi @fpl1976 You can fork this repo and create branch on your fork and after make the changes you can create pull request to this repo. Tx 👍

totpero avatar Jul 09 '22 07:07 totpero

I will try also to update the code.

totpero avatar Jul 09 '22 14:07 totpero

Hey @totpero

I have been running the tests (v6) and seen that for example the bots.yml fixture is producing errors because some entries do not have the producer node, therefore deserialization fails.

I am not really familiar with the YAML Parser library (FrontEnd Engineer 😄), so I guess a fix could be make the Producer object optional or with defaults in the Bot.cs class, if that is a possible setup in the YAML parser.

What do you think?

FelixPradosFL avatar Jul 15 '22 10:07 FelixPradosFL

Hi @FelixPradosFL, I have fix most of the tests, there are only 3 tests that not pass. I will fix them all. Thanks for your contribution.

totpero avatar Jul 15 '22 14:07 totpero

Awesome @totpero By the way, I am the same user as @fpl1976 , just using the company email

FelixPradosFL avatar Jul 15 '22 15:07 FelixPradosFL

Hi @totpero can you also authorize me to push using my @FelixPradosFL user? I have been fixing the failing tests for v6 and now everything is working locally

FelixPradosFL avatar Jul 19 '22 11:07 FelixPradosFL

@FelixPradosFL you just change the fixtures yaml file to pass the tests but this is not the solution, is just a hack. We need to fix the code to pass all the tests. If the original test scenario say that the model is "Chrome Mobile" you can't just change to "Chromium". We need to pass the tests with the original php yaml files. If the yaml test files is like in your commit, the change the file to the original php repo and after we will get the files from there. Thanks for your contribution 👍

totpero avatar Jul 20 '22 17:07 totpero

Hi @totpero going to take a second look. Will get the files from the php repo again.

I don't really understand that XXX TEST userAgent string for Dell. Seems like it is not a real userAgent string. About the Chrome Mobile vs Chromium, to me also seemed that for desktop fixtures the latest Chrome versions return Chromium as browser_family.

Will continue investigation, thx for your feedback.

Since I am not very familiar with the code I am trying to figure out why some very specific userAgent strings in the fixtures are failing.

fpl1976 avatar Jul 21 '22 08:07 fpl1976

Hi @fpl1976 , @FelixPradosFL ,

I just release new version v6.1.0

Thanks 👍

totpero avatar Mar 05 '23 18:03 totpero