codecharta icon indicating copy to clipboard operation
codecharta copied to clipboard

Bug/3044/margin renders some buildings missing

Open RomanenkoVladimir opened this issue 3 years ago • 3 comments

Modify area calculation to prevent disappearing buildings

Please read the CONTRIBUTING.md before opening a PR.

closes: #3044

Description

  • Change algorithm to visualize buildings that are getting removed by margin
  • Make margin scale with map size
  • Change floor label calculation to prevent floor labels that are "sandwitched" between bigger folders from rendering without buildings
  • add tests to explain new behaviour
  • maps are now quite bigger to assure that all buildings fit
  • sizes of folder areas should now more closely match each other when they are the same size

Screenshots or gifs

RomanenkoVladimir avatar Oct 06 '22 16:10 RomanenkoVladimir

However, I am still unhappy with the floor label solution and what be glad for any feedback or the potential to discuss it

RomanenkoVladimir avatar Oct 06 '22 17:10 RomanenkoVladimir

I would appreciate your feedback, now that maps are again squares and big maps are scaled down a bit

RomanenkoVladimir avatar Oct 24 '22 16:10 RomanenkoVladimir

Also for the changed floor label criteria and overall applicability for presentations

RomanenkoVladimir avatar Oct 24 '22 16:10 RomanenkoVladimir

[CodeCharta Analysis] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubecloud[bot] avatar Nov 04 '22 17:11 sonarqubecloud[bot]

[CodeCharta Visualization] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

96.1% 96.1% Coverage
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Nov 04 '22 17:11 sonarqubecloud[bot]

Hey, what's the status here @ the whole team? This PR is open for a pretty long time by now and we should try to get it merged soon, if there's no blocker left?

BridgeAR avatar Nov 17 '22 12:11 BridgeAR

In my experience there is no blocker I stated that it disables "Invert Area" but the feature was not working beforehand so we would need to reimplement it anyway

RomanenkoVladimir avatar Nov 17 '22 12:11 RomanenkoVladimir

If I understand correct, it "just" requires a proper review?

BridgeAR avatar Nov 17 '22 12:11 BridgeAR

I will have a Look :-)

ce-bo avatar Nov 17 '22 12:11 ce-bo

@RomanenkoVladimir I did some tests:

  • Loading anon.cc.json will cause an endless loop with a lots of console errors.
  • Why are some labels missing in the amazonaws.cc.json map?

ce-bo avatar Nov 17 '22 16:11 ce-bo

@RomanenkoVladimir I did some tests:

  • Loading anon.cc.json will cause an endless loop with a lots of console errors
  • Why are some labels missing in the amazonaws.cc.json map?

I don’t know about the anon.cc.json map, I take a look

but missing labels is part of the behavior, the folders were probably too small in contrast to the overall size or the parent folder sizes

RomanenkoVladimir avatar Nov 17 '22 16:11 RomanenkoVladimir

I also focused a file that is not rendered in CC map. The following error occured but I think it is already fixed by #3126. image image

ce-bo avatar Nov 17 '22 16:11 ce-bo

I also focused a file that is not rendered in CC map. The following error occured but I think it is already fixed by #3126. image image

Yeah it should not be possible to focus unrendered files, on main

RomanenkoVladimir avatar Nov 17 '22 16:11 RomanenkoVladimir

Is anon.cc.json a fixed-folder file?

RomanenkoVladimir avatar Nov 17 '22 16:11 RomanenkoVladimir

Loading a fixed folder map will crash the app. What's the status here? I am not sure how to deal with that to find a workaround at the moment. One option would be to deactivate the floor labels for maps of these type. But that has to be discussed internally first.

ce-bo avatar Nov 17 '22 16:11 ce-bo

Is anon.cc.json a fixed-folder file?

No, it's a usual one.

ce-bo avatar Nov 17 '22 16:11 ce-bo

Loading a fixed folder map will crash the app. What's the status here? I am not sure how to deal with that to find a workaround at the moment. One option would be to deactivate the floor labels for maps of these type. But that has to be discussed internally first.

I fix it tonight, it’s an easy fix I am sure I know what broke it

RomanenkoVladimir avatar Nov 17 '22 16:11 RomanenkoVladimir

It is looking good to me. We should check one last thing. With experimental features = on, the anon.cc.json is crashing with the following errors: image

ce-bo avatar Nov 18 '22 07:11 ce-bo

[CodeCharta Analysis] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

sonarqubecloud[bot] avatar Nov 22 '22 14:11 sonarqubecloud[bot]

[CodeCharta Visualization] Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

96.6% 96.6% Coverage
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Nov 22 '22 14:11 sonarqubecloud[bot]

Dear team, I would like to celebrate fixing this somehow. Do you have a suggestion what you would like to do or would you rather not do anything special?

BridgeAR avatar Nov 22 '22 15:11 BridgeAR

It is looking good to me. We should check one last thing. With experimental features = on, the anon.cc.json is crashing with the following errors: image

@MW-Friedrich Did you have a look on that?

ce-bo avatar Nov 22 '22 15:11 ce-bo

It is looking good to me. We should check one last thing. With experimental features = on, the anon.cc.json is crashing with the following errors: image

@MW-Friedrich Did you have a look on that?

Yes, I did, and I unfortunately couldn't reproduce the error. The anon.cc.json is the file that is loaded when starting CodeCarta in development mode (npm run dev), right?

friedrich-roskosch-mw avatar Nov 23 '22 09:11 friedrich-roskosch-mw

Ah okay. No, the anon.cc.json is another file that is shared internally. I will provide you with the map.

ce-bo avatar Nov 23 '22 09:11 ce-bo

Ah okay. No, the anon.cc.json is another file that is shared internally. I will provide you with the map.

I found and fixed the error together with @BenediktMehl in another issue, since we found out that the error had nothing to do with the margins. Good catch though!

friedrich-roskosch-mw avatar Nov 23 '22 14:11 friedrich-roskosch-mw

Ah okay. No, the anon.cc.json is another file that is shared internally. I will provide you with the map.

I found and fixed the error together with @BenediktMehl in another issue, since we found out that the error had nothing to do with the margins. Good catch though!

Thank you. This was fixed in #3144

ce-bo avatar Nov 23 '22 14:11 ce-bo