<commit_before>import Component from '@ember/component';
import { inject as service } from '@ember/service';
import { task } from 'ember-concurrency';

export default Component.extend({
  currentUser: service(),
  store: service(),
  router: service(),
  flashMessages: service(),
  verifyRoundModal: false,
  verifyRoundModalError: false,
  verifyRound: task(function *() {
    try {
      let round = yield this.model.verify({
        'by': this.get('currentUser.user.id')
      });
      yield this.store.pushPayload('round', round);
      yield this.get('model.appearances').invoke('reload');
      yield this.get('model.session.contests').invoke('reload');
      this.set('verifyRoundModal', false);
      this.set('verifyRoundModalError', false);
      this.flashMessages.success("Verified!");
      // this.get('router').transitionTo('dashboard.conventions.convention.sessions.session.rounds.round.contests');
    } catch(e) {
      this.set('verifyRoundModalError', true);
    }
  }).drop(),
});<commit_msg>Reload models on round verify<commit_after>import Component from '@ember/component';
import { inject as service } from '@ember/service';
import { task } from 'ember-concurrency';

export default Component.extend({
  currentUser: service(),
  store: service(),
  router: service(),
  flashMessages: service(),
  verifyRoundModal: false,
  verifyRoundModalError: false,
  verifyRound: task(function *() {
    try {
      let round = yield this.model.verify({
        'by': this.get('currentUser.user.id')
      });
      yield this.store.pushPayload('round', round);
      yield this.get('model.session.competitors').invoke('reload');
      yield this.get('model.session.outcomes').invoke('reload');
      this.set('verifyRoundModal', false);
      this.set('verifyRoundModalError', false);
      this.flashMessages.success("Verified!");
      // this.get('router').transitionTo('dashboard.conventions.convention.sessions.session.rounds.round.contests');
    } catch(e) {
      this.set('verifyRoundModalError', true);
    }
  }).drop(),
});
{'fraction_non_alphanumeric': 0.1611489776046738, 'fraction_numerical': 0.0, 'mean_word_length': 4.061576354679803, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5299550', 'n_tokens_mistral': 583, 'n_tokens_neox': 583, 'n_words': 114}