Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Autoincrement for local storage#847

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
mathiasrw merged 8 commits intoAlaSQL:developfromkanghj:autoincrement
Aug 5, 2018

Conversation

@kanghj
Copy link
Contributor

@kanghjkanghj commentedMar 22, 2017
edited
Loading

http://jsfiddle.net/80smosgp/2/ should show that it works as expected.

This is really@seb-ster 's code provided in the issue thread#462

mathiasrw reacted with heart emoji
Conflicts:dist/alasql-worker.jsdist/alasql-worker.min.jsdist/alasql.fs.jsdist/alasql.jsdist/alasql.min.js
@codecov-io
Copy link

codecov-io commentedMar 22, 2017
edited
Loading

Codecov Report

Merging#847 intodevelop willincrease coverage by0.01%.
The diff coverage is100%.

Impacted file tree graph

@@             Coverage Diff             @@##           develop     #847      +/-   ##===========================================+ Coverage    67.73%   67.75%   +0.01%===========================================  Files            1        1                Lines         9881     9886       +5       Branches      2949     2949              ===========================================+ Hits          6693     6698       +5  Misses        3188     3188
Impacted FilesCoverage Δ
dist/alasql.fs.js67.75% <100%> (+0.01%)⬆️

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last updatec5814b8...5175edb. Read thecomment docs.

mathiasrw
mathiasrw previously requested changesMar 23, 2017
Copy link
Member

@mathiasrwmathiasrw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

This is really awesome. Thank you for taking the time to get it done.

We really should make a test that reflects the issue so we know we dont break this feature in the future.

Please make a copy oftest/test000.js and rename to next number in the row of tests (613 as I recall) and try to replicate a scenario that this PR fixes?

@kanghj
Copy link
ContributorAuthor

@mathiasrw, I'll probably need help on the tests. This scenario here only affects localstorage, but all the tests seem to be running in a node environment, how do I test local storage specific code?

@mathiasrw
Copy link
Member

Of cause...

I suggest you do a

npm install --save-dev node-localstorage

and make a test that starts with

if (typeof localStorage === "undefined" || localStorage === null) {  var LocalStorage = require('node-localstorage').LocalStorage;  localStorage = new LocalStorage('./testxxx.localstorage');}```Then everything should work :)
kanghj reacted with thumbs up emoji

Conflicts:dist/alasql-worker.jsdist/alasql-worker.min.jsdist/alasql.fs.jsdist/alasql.jsdist/alasql.min.js
@kanghj
Copy link
ContributorAuthor

@mathiasrw, I have modified an existing test to only pass with the modifications added in this PR. Looks like there was support for writing LocalStorage tests in alasql already after all! Very cool. Unfortunately, there are other places where autoincrement for locastorage ought to work, but somehow still isn't (e.g. test389 when AUTOCOMMIT is off), I'll investigate them.

mathiasrw reacted with laugh emoji

@mathiasrw
Copy link
Member

mathiasrw commentedMar 26, 2017
edited
Loading

Really nice work.

Let me know when to merge the PR.

@mathiasrw
Copy link
Member

Any news on this?

@kanghj
Copy link
ContributorAuthor

Sorry, I got a bit busier than expected and this was a little harder to track down than I thought... Perhaps let's merge this PR first, but not close the issue. I'll work on this sometime next weekend when I have more time.

@mathiasrwmathiasrw dismissed theirstale reviewAugust 5, 2018 19:48

Merging as its better to add a fix to part of the problem than to add no fix.

@mathiasrwmathiasrw merged commit6d43479 intoAlaSQL:developAug 5, 2018
mathiasrw added a commit that referenced this pull requestNov 19, 2025
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>Co-authored-by: mathiasrw <1063454+mathiasrw@users.noreply.github.com>Co-authored-by: Mathias Wulff <m@rawu.dk>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@mathiasrwmathiasrwmathiasrw left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@kanghj@codecov-io@mathiasrw

[8]ページ先頭

©2009-2025 Movatter.jp