Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.

Implement version check to prevent old versions from making invalid changes #19

Closed
SSchulze1989 opened this issue Aug 3, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@SSchulze1989
Copy link
Owner

SSchulze1989 commented Aug 3, 2020

Description

Older Versions of the might work on Incompatible or Incomplete DTOs.
Mapping these to the DB can lead to invalidation of the Data and in worst case completely preventing another client from working with the data.

Multiple measures need to be taken to prevent this:

  • Make sure no changes are submitted/accepted with non-matching versions
  • Validating data before saving changes on db.

Work

After the first Major release the API must handle older versions in a non breaking way, but for now i think it is enough to just block all post and put request if the client version is older.

@SSchulze1989 SSchulze1989 added the enhancement New feature or request label Aug 3, 2020
@SSchulze1989 SSchulze1989 added this to To do in iRLeagueDatabaseService v0.5-alpha via automation Aug 3, 2020
@SSchulze1989 SSchulze1989 self-assigned this Aug 3, 2020
@SSchulze1989 SSchulze1989 moved this from To do to In progress in iRLeagueDatabaseService v0.5-alpha Aug 3, 2020
@SSchulze1989 SSchulze1989 changed the title Implement version check to prevent old from making invalid changes Implement version check to prevent old versions from making invalid changes Aug 3, 2020
@SSchulze1989 SSchulze1989 moved this from In progress to To do in iRLeagueDatabaseService v0.5-alpha Aug 27, 2020
@SSchulze1989
Copy link
Owner Author

This issue is no longer relevant for now. Automatic updating of the tool is making sure only valid DTOs will be send.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant