Skip to content

Conversation

@jonas-chow
Copy link
Contributor

Description

Resolves #1752 by adding a condition in processEvent().
Resolves #1439 by using moment.js in the achievement DateHelper to prettify dates.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Code quality improvements

How to test

Run code while not logged in, no "Please log in again" pop out should appear.
Set achievements with different deadlines, see that the deadline listed in the achievement dashboard looks reasonable.

Checklist

  • I have tested this code
  • I have updated the documentation

jonas-chow and others added 27 commits April 17, 2021 00:10
Split updateGoalProgress into self and admin, with validation.
Renamed variableXp to isVariableXp
Changed some critical endpoints to comply with v2 backend.
Handling events now happens every 5 seconds if there are events queued.
Also removed redundant dependency between goal and achievement when
adding goals to achievements.
Any changes done in the inferencer will not affect the copy in the
overall state.
Inferencer now makes a deep copy of every achievement/goal it is
constructed with so as to not touch the overall state.
@coveralls
Copy link

Pull Request Test Coverage Report for Build 892287120

  • 1 of 13 (7.69%) changed or added relevant lines in 2 files are covered.
  • 4 unchanged lines in 3 files lost coverage.
  • Overall coverage decreased (-0.02%) to 29.381%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/commons/achievement/utils/DateHelper.ts 0 6 0.0%
src/commons/achievement/utils/EventHandler.ts 1 7 14.29%
Files with Coverage Reduction New Missed Lines %
src/commons/achievement/utils/DateHelper.ts 1 14.81%
src/pages/createStore.ts 1 70.59%
src/commons/achievement/utils/EventHandler.ts 2 9.23%
Totals Coverage Status
Change from base Build 878745089: -0.02%
Covered Lines: 2773
Relevant Lines: 8684

💛 - Coveralls

Copy link
Contributor

@chownces chownces left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks

@chownces chownces merged commit 8bf7983 into master May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Playground: spurious popup "please log in again" Achievement: Use moment.js for DateHelper

6 participants