Page MenuHomeSoftware Heritage

webpack-dev-server: Do not reload page when database file is modified
ClosedPublic

Authored by anlambert on Mar 16 2022, 3:31 PM.

Details

Summary

webpack-dev-server watches static files and will reload application in
the browser when one of them is modified.

However, we need to ignore sqlite3 database files used in development
mode as any HTTP request that modifies the database will trigger an
unexpected page reload.

Diff Detail

Repository
rDWAPPS Web applications
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 27492
Build 43020: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 43019: arc lint + arc unit

Event Timeline

Build is green

Patch application report for D7361 (id=26611)

Rebasing onto 627ba79a1d...

Current branch diff-target is up to date.
Changes applied before test
commit 4dd2c8ff9d90133886003d09d4f7cf4f4ef4653b
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Wed Mar 16 15:25:54 2022 +0100

    webpack-dev-server: Do not reload page when database file is modified
    
    webpack-dev-server watches static files and will reload application in
    the browser when one of them is modified.
    
    However, we need to ignore sqlite3 database files used in development
    mode as any HTTP request that modifies the database will trigger an
    unexpected page reload.

See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1470/ for more details.

This revision is now accepted and ready to land.Mar 16 2022, 3:47 PM