Skip to content

Enhancement/Remove demo components#276

Merged
Hironsan merged 4 commits into
doccano:masterfrom
CatalystCode:enhancement/remove-demo-components
Jul 9, 2019
Merged

Enhancement/Remove demo components#276
Hironsan merged 4 commits into
doccano:masterfrom
CatalystCode:enhancement/remove-demo-components

Conversation

@c-w

@c-w c-w commented Jul 5, 2019

Copy link
Copy Markdown
Member

As discussed in #274, we currently have some code duplication between the demo labeling canvas and the production labeling canvas. This means that new frontend features may have to be implemented twice which slows down the process and may confuse developers.

This pull request refactors the demo pages to use the production labeling canvas. This is achieved by using axios-mock-adapter to intercept the HTTP requests of the production labeling canvas and replacing them with an in-memory implementation. In the future, this same approach can also be leveraged for faking HTTP requests for unit testing the frontend.

@c-w
c-w force-pushed the enhancement/remove-demo-components branch from 10c8ee3 to 4515228 Compare July 7, 2019 17:50
@Hironsan
Hironsan merged commit 1c4894a into doccano:master Jul 9, 2019
@Hironsan

Hironsan commented Jul 9, 2019

Copy link
Copy Markdown
Member

Wonderful!

@c-w
c-w deleted the enhancement/remove-demo-components branch July 9, 2019 12:20
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.

3 participants