Skip to content

Allow to reattribute provider with ./console usercountry:attribute #44

@uschindler

Description

@uschindler

After installing the provider plugin and the ISP provider databases I assumed that you can also use php ./console usercountry:attribute to update the location_provider database field. This does not work, after running the command the historical log data was not updated.

When looking at the code, the class VisitorGeolocator.php in the UserCountry plugin does not even call the provider plugin to update the data. Actually the geolocator data is directly populated by the VisitorGeolocator without going through the abstractions, it just uses a map which fields in the log entry to update. location_provider is not part of this list of fields to update.

I am not sure how to fix this in the current architecture, because the extra field in the Provider plugin is unknown to UserCountry plugin, so just hacking it into the script won't work.

Is there any way to run the Geolocator in the same way like for UserCountry?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions