{"action":"created","issue":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/1546","repository_url":"https://api.github.com/repos/webpack/webpack-dev-server","labels_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/1546/labels{/name}","comments_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/1546/comments","events_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/1546/events","html_url":"https://github.com/webpack/webpack-dev-server/pull/1546","id":373998911,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI1Nzk5OTA4","number":1546,"title":"feat(Server): add `/invalidate` endpoint","user":{"login":"camertron","id":575280,"node_id":"MDQ6VXNlcjU3NTI4MA==","avatar_url":"https://avatars2.githubusercontent.com/u/575280?v=4","gravatar_id":"","url":"https://api.github.com/users/camertron","html_url":"https://github.com/camertron","followers_url":"https://api.github.com/users/camertron/followers","following_url":"https://api.github.com/users/camertron/following{/other_user}","gists_url":"https://api.github.com/users/camertron/gists{/gist_id}","starred_url":"https://api.github.com/users/camertron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/camertron/subscriptions","organizations_url":"https://api.github.com/users/camertron/orgs","repos_url":"https://api.github.com/users/camertron/repos","events_url":"https://api.github.com/users/camertron/events{/privacy}","received_events_url":"https://api.github.com/users/camertron/received_events","type":"User","site_admin":false},"labels":[{"id":1104808199,"node_id":"MDU6TGFiZWwxMTA0ODA4MTk5","url":"https://api.github.com/repos/webpack/webpack-dev-server/labels/pr:%20discuss","name":"pr: discuss","color":"0052cc","default":false},{"id":428244491,"node_id":"MDU6TGFiZWw0MjgyNDQ0OTE=","url":"https://api.github.com/repos/webpack/webpack-dev-server/labels/priority:%204%20(nice%20to%20have)","name":"priority: 4 (nice to have)","color":"fef2c0","default":false},{"id":1035465627,"node_id":"MDU6TGFiZWwxMDM1NDY1NjI3","url":"https://api.github.com/repos/webpack/webpack-dev-server/labels/scope:%20server","name":"scope: server","color":"006b75","default":false},{"id":428244798,"node_id":"MDU6TGFiZWw0MjgyNDQ3OTg=","url":"https://api.github.com/repos/webpack/webpack-dev-server/labels/severity:%204%20(inconvenient)","name":"severity: 4 (inconvenient)","color":"ef7675","default":false},{"id":1031311130,"node_id":"MDU6TGFiZWwxMDMxMzExMTMw","url":"https://api.github.com/repos/webpack/webpack-dev-server/labels/type:%20feature","name":"type: feature","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/milestones/3","html_url":"https://github.com/webpack/webpack-dev-server/milestone/3","labels_url":"https://api.github.com/repos/webpack/webpack-dev-server/milestones/3/labels","id":3588564,"node_id":"MDk6TWlsZXN0b25lMzU4ODU2NA==","number":3,"title":"3.2.0","description":"Feature Release (🏷 Minor)","creator":{"login":"michael-ciniawsky","id":5419992,"node_id":"MDQ6VXNlcjU0MTk5OTI=","avatar_url":"https://avatars0.githubusercontent.com/u/5419992?v=4","gravatar_id":"","url":"https://api.github.com/users/michael-ciniawsky","html_url":"https://github.com/michael-ciniawsky","followers_url":"https://api.github.com/users/michael-ciniawsky/followers","following_url":"https://api.github.com/users/michael-ciniawsky/following{/other_user}","gists_url":"https://api.github.com/users/michael-ciniawsky/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-ciniawsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-ciniawsky/subscriptions","organizations_url":"https://api.github.com/users/michael-ciniawsky/orgs","repos_url":"https://api.github.com/users/michael-ciniawsky/repos","events_url":"https://api.github.com/users/michael-ciniawsky/events{/privacy}","received_events_url":"https://api.github.com/users/michael-ciniawsky/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":5,"state":"open","created_at":"2018-08-21T21:23:51Z","updated_at":"2018-10-30T12:32:19Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2018-10-25T15:13:57Z","updated_at":"2018-11-01T16:43:58Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/pulls/1546","html_url":"https://github.com/webpack/webpack-dev-server/pull/1546","diff_url":"https://github.com/webpack/webpack-dev-server/pull/1546.diff","patch_url":"https://github.com/webpack/webpack-dev-server/pull/1546.patch"},"body":"- [ ] This is a **bugfix**\r\n- [x] This is a **feature**\r\n- [ ] This is a **code refactor**\r\n- [ ] This is a **test update**\r\n- [ ] This is a **docs update**\r\n- [ ] This is a **metadata update**\r\n\r\n### For Bugs and Features; did you add new tests?\r\n\r\nSadly no. How should I go about testing this? Happy to work something up given some direction.\r\n\r\n### Motivation / Use-Case\r\n\r\nWe're trying to use docker-compose for local development of a giant monolithic rails app that uses webpack for several pages written with react. For performance reasons, we're mounting a volume inside the rails container using NFS, which doesn't support file system events. Consequently, making changes to our react components doesn't trigger an automatic webpack refresh. This PR is an attempt to expose and endpoint that, when hit, will trigger a recompile. The idea is to run a separate container with a regular 'ol non-NFS volume that will listen for file system events and ping the /invalidate endpoint. Actually, while I have you here, I've been trying to figure out an easy way to get the list of files webpack-dev-server is watching, but that appears to be pretty well concealed. Any tips?\r\n\r\n### Additional Info\r\n\r\nI added this change by creating a branch from master, but, if this change is accepted, I would love it if it could be released as both a 2.x and a 3.x version bump, since we are still stuck on 2.x at the moment."},"comment":{"url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/comments/435104231","html_url":"https://github.com/webpack/webpack-dev-server/pull/1546#issuecomment-435104231","issue_url":"https://api.github.com/repos/webpack/webpack-dev-server/issues/1546","id":435104231,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTEwNDIzMQ==","user":{"login":"codecov[bot]","id":22429695,"node_id":"MDM6Qm90MjI0Mjk2OTU=","avatar_url":"https://avatars2.githubusercontent.com/in/254?v=4","gravatar_id":"","url":"https://api.github.com/users/codecov%5Bbot%5D","html_url":"https://github.com/apps/codecov","followers_url":"https://api.github.com/users/codecov%5Bbot%5D/followers","following_url":"https://api.github.com/users/codecov%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/codecov%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/codecov%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codecov%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/codecov%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/codecov%5Bbot%5D/repos","events_url":"https://api.github.com/users/codecov%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/codecov%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-11-01T16:43:58Z","updated_at":"2018-11-01T16:43:58Z","author_association":"NONE","body":"# [Codecov](https://codecov.io/gh/webpack/webpack-dev-server/pull/1546?src=pr&el=h1) Report\n> Merging [#1546](https://codecov.io/gh/webpack/webpack-dev-server/pull/1546?src=pr&el=desc) into [master](https://codecov.io/gh/webpack/webpack-dev-server/commit/fa96a76e9e5507bbf874044be0d95872768abf5e?src=pr&el=desc) will **decrease** coverage by `0.32%`.\n> The diff coverage is `33.33%`.\n\n[![Impacted file tree graph](https://codecov.io/gh/webpack/webpack-dev-server/pull/1546/graphs/tree.svg?width=650&token=WeyEj48Ike&height=150&src=pr)](https://codecov.io/gh/webpack/webpack-dev-server/pull/1546?src=pr&el=tree)\n\n```diff\n@@            Coverage Diff             @@\n##           master    #1546      +/-   ##\n==========================================\n- Coverage   74.02%   73.69%   -0.33%     \n==========================================\n  Files          10       10              \n  Lines         670      673       +3     \n==========================================\n  Hits          496      496              \n- Misses        174      177       +3\n```\n\n\n| [Impacted Files](https://codecov.io/gh/webpack/webpack-dev-server/pull/1546?src=pr&el=tree) | Coverage Δ | |\n|---|---|---|\n| [lib/Server.js](https://codecov.io/gh/webpack/webpack-dev-server/pull/1546/diff?src=pr&el=tree#diff-bGliL1NlcnZlci5qcw==) | `80.7% <33.33%> (-0.67%)` | :arrow_down: |\n\n------\n\n[Continue to review full report at Codecov](https://codecov.io/gh/webpack/webpack-dev-server/pull/1546?src=pr&el=continue).\n> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)\n> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`\n> Powered by [Codecov](https://codecov.io/gh/webpack/webpack-dev-server/pull/1546?src=pr&el=footer). Last update [fa96a76...2866974](https://codecov.io/gh/webpack/webpack-dev-server/pull/1546?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).\n"}}
{"actor":{"display_login":"codecov"}}