chromoscope icon indicating copy to clipboard operation
chromoscope copied to clipboard

Add URL-safe Base64 Encoding/Decoding for Dynamic Sample Redirection

Open janvandenschilden opened this issue 2 months ago • 2 comments

What changes are being proposed?

This pull request introduces a new feature that allows JSON data to be encoded into a URL using base64 encoding. This enhancement enables dynamic redirection of users to specific samples without the need to create a separate JSON file for each possibility. The implementation includes a new utility class, UrlsafeCodec, which handles the encoding and decoding process, ensuring that the data is URL-safe.

Why are these changes necessary?

The changes address issue #133, which highlighted the need for a more efficient way to handle sample redirection. By encoding the JSON data directly into the URL, we can significantly simplify the process for users and maintainers alike, making the application more flexible and user-friendly.

How have these changes been tested?

The new encoding and decoding functionality has been thoroughly tested with various JSON data structures to ensure reliability and stability. Manual testing has been conducted to confirm that the feature works as expected in the application.

janvandenschilden avatar Apr 18 '24 08:04 janvandenschilden