Skip to content

Issue: Limit Result Set in Import Components from DB & Feature: Refresh elements in a view using a context menu #147

@jayanthsunchu

Description

@jayanthsunchu

Hello

First of all, thank you for the awesome plugin. We use your plugin in combination with coArchi so that our architecture teammates can collaborate.

Background:
We have a Postgres database that is refreshed weekly which has all the elements (apps/services etc., in our application portfolio) and all the metadata (properties) associated to those elements. We have a model in github that we work on (contributions from multiple architects using coArchi) and we use import components to pull any new elements and their metadata into the model.

Issue:
The Postgres database is common throughout the org (app portfolio across the org) and thus has > 5k elements, so in the Import Components dialog box, when we search for elements by just selecting elements or by using the name filter text box, it ends up not responding because of the huge result set and the fact that the query is fired every time we type a letter in to the name filter textbox. We usually end up force closing Archi.

Manual Workaround:
We type the full text that we want to search for in the name filter text box, when Models radio button is selected and then switch to elements radio button so that we don't have this issue. Everytime we forget doing this we force close Archi.

Fix:
Open for other ideas on how we can fix this but one idea that I tried out in my local was to limit the result set to 100. Right now, I only have code to limit it for a Postgres database query but I can add fixes for others. Let me know if you think this is okay and I can submit a PR or if you have any other better ideas of how to fix this issue and I can work on this.

Feature Request:
As I mentioned earlier, we pull the elements from a Postgres database which gets refreshed weekly. Typically, we don't have any major updates to the existing elements but once in a while we add/update metadata. We wanted to be able to refresh the metadata (properties mainly) using a simple context menu in the context of a view (right click on an archimate view and click Refresh elements from DB). In the context of a view because the architects have control over what they refresh and takes less time compared to refreshing the whole model (again we have > 5k elements). I have this also working on my local, I can submit a PR if you think this makes sense or we can discuss other ways to enable this feature and I am open to working on it.

(Images for the feature request built in my local attached for reference - fyi, I did use the 2.2.16 code because that's what we use I will obviously submit the PR if you agree with the latest)

Thanks again for the awesome plugin. Sorry about the long explanation.
RefreshInContextMenu
RefreshSummaryView

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions