Commit f8a09735 authored by Bryce Johnson's avatar Bryce Johnson

Remove mocking logic.

parent 2fe23ad1
...@@ -3,11 +3,6 @@ ...@@ -3,11 +3,6 @@
//= smart_interval //= smart_interval
//= subbable_resource //= subbable_resource
function getRandomInt(min, max) {
const justReturnZero = Math.random() > .8;
return justReturnZero ? 0 : Math.floor(Math.random() * (max - min + 1)) + min;
}
((global) => { ((global) => {
/* This Vue instance represents what will become the parent instance for the /* This Vue instance represents what will become the parent instance for the
* sidebar. It will be responsible for managing `issuable` state and propagating * sidebar. It will be responsible for managing `issuable` state and propagating
...@@ -40,10 +35,6 @@ function getRandomInt(min, max) { ...@@ -40,10 +35,6 @@ function getRandomInt(min, max) {
}); });
}, },
updateState(data) { updateState(data) {
/* MOCK */
data.time_estimate = getRandomInt(0, 100000)
data.time_spent = getRandomInt(0, 100000);
this.issuable = data; this.issuable = data;
}, },
subscribeToUpdates() { subscribeToUpdates() {
...@@ -54,7 +45,7 @@ function getRandomInt(min, max) { ...@@ -54,7 +45,7 @@ function getRandomInt(min, max) {
// TODO: check if slash command was updated. // TODO: check if slash command was updated.
this.fetchIssuable(); this.fetchIssuable();
}); });
} },
}, },
mounted() { mounted() {
this.initPolling(); this.initPolling();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment