Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add in_memory storage option #2356

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

Conversation

XaviFP
Copy link
Contributor

@XaviFP XaviFP commented Dec 4, 2020

Complementary work for conversejs/skeletor#6
Changed git hash to not forget about updating it when it gets merged.

  • Add a changelog entry for your change in CHANGES.md
  • When adding a configuration variable, please make sure to
    document it in docs/source/configuration.rst
  • Please add a test for your change. Tests can be run in the commandline
    with make check or you can run them in the browser by running make serve
    and then opening http://localhost:8000/tests.html.

@XaviFP XaviFP changed the title add in_memory storage option Add in_memory storage option Dec 4, 2020
@@ -998,6 +998,9 @@ function initPersistentStorage () {
} else if (_converse.api.settings.get("persistent_store") === 'IndexedDB') {
config['description'] = 'indexedDB instance';
config['driver'] = [Storage.localForage.INDEXEDDB];
} else if (_converse.api.settings.get("persistent_store") === 'in_memory') {
Copy link
Member

Choose a reason for hiding this comment

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

I prefer none to in_memory for the config setting value.

It's more semantic because strictly speaking, there is no persistent storage in this case.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense :)

@jcbrand
Copy link
Member

jcbrand commented Dec 7, 2020

Thanks @XaviFP.

The tests are failing and need to be fixed first.

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.

2 participants