Opened 11 years ago

Closed 11 years ago

#90 closed enhancement (fixed)

Detect manufacturer with help of productnumber

Reported by: Joachim Langenbach Owned by: Joachim Langenbach
Priority: major Milestone: 0.5
Component: Meganizer Version: 0.3.1
Keywords: Cc:
Optimistic LoC: 5000 Normal LoC: 10000
Pessimistic LoC: 20000 Estimated LoC: 10834
Needed LoC: 1826

Description (last modified by Joachim Langenbach)

Try to detect the manufacturer with help of the productnumber. To achieve this, one must know all manufacturer parts of productnumbers (per type) and the corresponding manufacturer.

To lower our efforts, a first solution may analyze the existing data in local database and tries to detect the manufacturer part for each manufacturer. Furtheron, it can automatically choose the manufacturer, if a prefix is found. (Done with [452])

Create a server to submit (Can be disabled) and revieve those data, to be able to share them among users to lower their effort.

Change History (17)

comment:1 Changed 11 years ago by Joachim Langenbach

(In [173]) * refs #90

  • CheckManufacturers?
    • this class checks the present numbers of each manufacturer and tries to find the corresponding prefix
    • In future, this class can be called to update the internal datas of prefixes
  • CheckManufacturersStatusWidget?
    • a GUI to visualize the progress and found prefixes

comment:2 Changed 11 years ago by Joachim Langenbach

Added 393 LoC's to needed LoC's because of changelog [173]

comment:3 Changed 11 years ago by Joachim Langenbach

Milestone: 0.30.4

comment:4 Changed 11 years ago by Joachim Langenbach

Owner: changed from Joachim Langenbach to Joachim Langenbach
Status: newassigned

comment:5 Changed 11 years ago by Joachim Langenbach

Milestone: 0.4Undefined

comment:6 Changed 11 years ago by Joachim Langenbach

Milestone: Undefined0.4

comment:7 Changed 11 years ago by Joachim Langenbach

(In [450]) * refs #90

  • The checks are done threaded now
  • Added commonPrefix(QStringList mins, QString type) to MINValidator to extract MIN type specific manufacturer number cycles at CheckManufacturerWorker::runChecks(). Therefore also add commonPrefix(QStringList mins) to the MINValidatorPlugin interface.

comment:8 Changed 11 years ago by Joachim Langenbach

Added 657 LoC's to needed LoC's because of changelog [450]

comment:9 Changed 11 years ago by Joachim Langenbach

(In [451]) * refs #90

  • Computing the prefix is supported by the EANValidator now
  • CheckManufacturerWorker? computes prefixes correctly and stores and updates them at the database.

comment:10 Changed 11 years ago by Joachim Langenbach

Added 491 LoC's to needed LoC's because of changelog [451]

comment:11 Changed 11 years ago by Joachim Langenbach

(In [452]) * refs #90

  • Medium
    • sets the manufacturer, if it can be identified by a newly added MIN and is not set already (manufacturer() < 1)
  • Amazon
    • sets the manufacturer only if not already set (manufacturer() < 1) to not overide the one determined by the MIN
    • improved the creation of the item search request. It now tries to convert MINs into EANs and add them if it was possible
    • UPCs are now extracted from Amazon XML answer
  • SearchWidget?
    • Improved MIN handling
  • MINValidator and MINValidatorPlugin
    • Added new function QStringList minMaxPrefixes(QString min) to get the prefix with minimum length and the one with maximum length for given MIN (Used by Medium::setManufacturerByMIN())

comment:12 Changed 11 years ago by Joachim Langenbach

Added 285 LoC's to needed LoC's because of changelog [452]

comment:13 Changed 11 years ago by Joachim Langenbach

Description: modified (diff)
Estimated LoC: 208410834
Normal LoC: 200010000
Optimistic LoC: 15005000
Pessimistic LoC: 300020000

comment:14 Changed 11 years ago by Joachim Langenbach

(In [453]) * refs #90

  • Added new server to store and query existing manufacturers (the central database)
  • Added queries to find out the related manufacturer (Medium)
  • Calculating all relation of manufacturers and MINs

comment:15 Changed 11 years ago by Joachim Langenbach

Status: assignedtesting

comment:16 Changed 11 years ago by Joachim Langenbach

Status: testingreopened

The manufacturer check with sending them is not done after ading new media. May be this message should be regarded:

Application asked to unregister timer 0x79000013 which is not registered in this thread. Fix application.

comment:17 Changed 11 years ago by Joachim Langenbach

Resolution: fixed
Status: reopenedclosed

(In [463]) * fixes #90

  • sendMINRanges is only stored, if the user activly changes the state
Note: See TracTickets for help on using tickets.