Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Introduction

This document describes the key design problem statement and design for the separation of question set and collection editor.

Jira LINK: SB-28699 - Getting issue details... STATUS

Background

Currently, both Collection & QuestionSet editors are using a single code base, and based on configuration collection or question-set editor will be launched. This codebase is currently under Knowlg BB.
This design was implemented when both editors were built and maintained by a single team - sourcing circle. Now, the question set editor is part of inQuiry BB and the collection editor is part of knowlg BB. There is one of the roadmap items for knowlg BB is to separate the question set editor code from Knowlg.

Problem Statement

How to separate Collection & QuestionSet editor?

Key design problems

  • How to separate the collection and questionSet editor from the single code base?

  • How to create and manage generic components used by both editors?

  • How to make sure these editors are working as expected after being de-composed?

Design

Approach 1:

  • In this solution, We have to design and implement a base editor. which will use by the both question set and collection editor.

  • The base editor will contain the common components such as hierarchy tree, header, and base service

  • The Base Editor is responsible for defining the contract used by itself and the editors to communicate.

  • Here’s the diagram architecture of the base editor.

Pros:

  1. Independently deployable and release process (CI/CD pipelines)

  2. Third-party library Dependency can be handled independently(Specific to repositories)

  3. Features specific to the editor can be implemented in the respective GitHub repo.

  4. Easier adoption and contribution

  5. Reduce the build size/ better performance

Cons:

  1. Effort intensive

  2. Build and maintenance of the base editor

Approach 2

Approach 3

  • In this approach, We will create shared modules which allow us to organise the common code.

  • We will put commonly used services and components into the shared module and then import just that module wherever you need it in other parts of your application.
    For example Hierarchy tree, Dialcode, etc…

Pros:

  • Efficiency: Reuse markups across components, Future changes are simple

  • Consistency: Updating reusable components get affected everywhere it is used

  • Very easy to implement

  • Development effort and testing are less compared to approach 1

Cons:

Conclusion:

TBD…..

  • No labels