question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question about manual data update

See original GitHub issue

I wonder why in the manual update case the removeMissing option is not taken into account here ?

Indeed it is very convenient to let the plugin manages this for you in most use cases instead of having to manually split features between added/removed ones. If you still want to use this manual workflow simply set the removeMissing option to false.

This way it seems to me the API is more coherent to what is done when data fetching is delegated to the plugin here. However, I also understand this is a breaking change to endorse…

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
claustrescommented, Apr 29, 2019

Well I was thinking to simply replace this line by this._onNewData(this.options.removeMissing, geojson) since the _onNewData() method already provide the flag and this will be similar than with auto-updates.

However this is a breaking change, so we might add a flag in the update method as you seem to propose and keep the old behavior like this:

update: function(geojson, removeMissing) {
    ...
    if (geojson) {
        this._onNewData(removeMissing, geojson); // Defaults to false if option not defined
    } else {
        responseHandler = L.bind(function(data) {
            // Will allow to temporarily override layer option if provided
            this._onNewData(typeof removeMissing === 'undefined' ? this.options.removeMissing : removeMissing, data);
        }, this);
        ...
    }

    return this;
}

What do you think ?

0reactions
perliedmancommented, Sep 7, 2019

Closing this since I believe it is fixed by #127.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Data Updates: Automatic or Manual? | by Jacob Baskin | Coord
Ask yourself how often you need to update the data and how much work is involved. Figure out how hard it would be...
Read more >
Manual Data Entry - Errors, Problems, and Automation with ...
Manual data entry process is laden with problems like high error rates, slow turnaround, high paperwork and more. Go digital with AI-OCR ...
Read more >
Manual Data Collection: Manufacturing's Biggest Problem
Manual data collection is a poor way to collect operational data. Processes that rely on paper and spreadsheets create many problems for ...
Read more >
Everything wrong with manual data entry - ThinkAutomation
Here, we outline the top 3 problems with manual data entry, what causes them, and how automation software is the answer to the...
Read more >
Digital Transformation: Put an End to Manual Data Entry
Is manual data entry ruining your productivity? Learn how to eliminate data entry for good with these smart tips on data automation.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found