Skip to content

Broken roundtrip, due to inconsistent topic_guids #189

@jasollien

Description

@jasollien

Moving from file based to API-based communication, we moved all logic for "topic_guid" generation from the client to the server. This works nice if the client don't supports file export or import. However, for those who do, server generated guids causes some problems with synchronization.

This:
1: User creates a topic in a client (client generates a topic_guid "guid1"
2: User exports a BCF-file of this topic (with topic_guid "guid1"
3: User syncs this topic to a server (note, server will create a new topic_guid "guid2"
4: Another user makes a comment in the BCF-file in another tool, and does a new export: "BCF-file 2"

After this step, the following scenarios will be broken.
5-1: User imports either the BCF-file, or "BCF-file 2" to the server

  • guids don't match, and a new topic will be created on the server instead of merging with the actual

5-2: User imports either the BCF-file, or "BCF-file 2" back to the client

  • guids don't match, and a new topic will be created on the client instead of merging with the actual

5-3: User makes a new comment in the client, and exports a new BCF-file "BCF-file 3", and imports that in the other tool

  • guids don't match, and a new topic will be created in the other tool instead of merging with the actual

In order to solve these problems, I suggest this change in the documentation: #192

Changes will be backwards compatible, both for client and server. When implemented both from the client and the server side, the problems above will be solved

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions