Repository has been moved to https://github.com/reimagined/resolve/tree/master/examples/ts/hacker-news
reimagined / hacker-news-resolve Goto Github PK
View Code? Open in Web Editor NEWReact & Redux & Resolve implementation of Hacker News
React & Redux & Resolve implementation of Hacker News
Repository has been moved to https://github.com/reimagined/resolve/tree/master/examples/ts/hacker-news
Importing only one HackerNews story affects invoking more than 30000 tcp + udp packets, which is very redundant. Performing import is necessary when event structure had been changed. It's not very frequent operation while development, but non rare too.
For example, only resolving IP-address of HackerNews website by DNS performs hundred and hundred times repeatably. import_hn.log.
In comparation, two minutes of 4K youtube video consumes only approximate 1900 tcp packets and works very well. youtube.log
Issue faced on Ubuntu 16.04.1 LTS on VirtualBox 5.2.0, virtual network adapter is:
82540EM Gigabit Ethernet Controller (pm pcix bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation, autonegotiation=on broadcast=yes driver=e1000 driverversion=7.3.21-k8-NAPI duplex=full ip=10.0.2.15 latency=64 link=yes mingnt=255 multicast=yes port=twisted pair speed=1Gbit/s)
Most likely, that current importer implementation performs big traffic flood, which can be handled by physical adapter, but very much for virtual.
Describe the bug
Read-model
To Reproduce
Steps to reproduce the behavior:
await store.update('Users', { id: aggregateId }, { $set: changes })
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
Original resolve-scripts
package supports ability for setup ROOT_DIR
, which meant application can be run for specified subdirectory. But Hacker-news front-end part itself does not support this ability
Import has been started. Press Crtl+C to stop import
TypeError: Cannot read property 'forEach' of undefined
at /home/osboxes/hacker-news-resolve/import/importer.js:137:5
at Array.reduce (<anonymous>)
at getUniqueStoryIds (/home/osboxes/hacker-news-resolve/import/importer.js:136:29)
at _callee4$ (/home/osboxes/hacker-news-resolve/import/importer.js:151:10)
at tryCatch (/home/osboxes/hacker-news-resolve/node_modules/regenerator-runtime/runtime.js:65:40)
at Generator.invoke [as _invoke] (/home/osboxes/hacker-news-resolve/node_modules/regenerator-runtime/runtime.js:303:22)
at Generator.prototype.(anonymous function) [as next] (/home/osboxes/hacker-news-resolve/node_modules/regenerator-runtime/runtime.js:117:21)
at step (/home/osboxes/hacker-news-resolve/import/importer.js:55:191)
at /home/osboxes/hacker-news-resolve/import/importer.js:55:361
at <anonymous>
npm run import ✓ 11912 11:35:57
[email protected] import /Users//Documents/hacker-news-resolve
babel-node ./import
Import has been started. Press Crtl+C to stop import
Data importing from news.ycombinator.com [===-----------------] 142/989Fetch timeout (10000 ms)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] import:babel-node ./import
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] import script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users//.npm/_logs/2017-10-31T08_37_40_174Z-debug.log
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.