Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

Better user logging #108

Open
ewang2002 opened this issue Feb 26, 2021 · 0 comments
Open

Better user logging #108

ewang2002 opened this issue Feb 26, 2021 · 0 comments
Labels
enhancement New feature or request high priority Issues that need to be acknowledged as soon as possible.

Comments

@ewang2002
Copy link
Member

ewang2002 commented Feb 26, 2021

Instead of having defined properties for each user document, we can have an array of objects, where each object has a key and value property. In this sense, we are able to infinitely "expand" our logging capabilities. For example, instead of having a set property for logging runs, we can have something like this:

[
	{key: "COMPLETED_<dungeon id>_RUNS", guildId: "guild id", value: 15},
	{key: "FAILED_<dungeon id>_RUNS_<guild id>", guildId: "guild id", value: 1}
	// ...
]

In this sense, no longer need to add properties when something new comes out. Instead, we can simply "push" properties into an array of all properties.

@ewang2002 ewang2002 added enhancement New feature or request high priority Issues that need to be acknowledged as soon as possible. labels Feb 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request high priority Issues that need to be acknowledged as soon as possible.
Projects
None yet
Development

No branches or pull requests

1 participant