Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Remove LinearRing #12910

Open
dblock opened this issue Mar 25, 2024 · 2 comments
Open

[Feature Request] Remove LinearRing #12910

dblock opened this issue Mar 25, 2024 · 2 comments
Labels
enhancement Enhancement or improvement to existing feature or request Search Search query, autocomplete ...etc

Comments

@dblock
Copy link
Member

dblock commented Mar 25, 2024

Is your feature request related to a problem? Please describe

Coming from #12834 (comment) and #12324, LinearRing looks like dead code. The fix introduced in #12834 is to handle missing serialization in that type of data.

Describe the solution you'd like

  1. Remove LinearRing and related code.
  2. Close Implement serialization for LinearRing. #12831 without merging.
  3. Revert Catch task description error #12834 and the backport for custom-handling the exception.

Related component

Search

Describe alternatives you've considered

Additional context

@dblock dblock added enhancement Enhancement or improvement to existing feature or request untriaged labels Mar 25, 2024
@github-actions github-actions bot added the Search Search query, autocomplete ...etc label Mar 25, 2024
@peternied
Copy link
Member

[Triage - attendees 1 2 3 4 5 6]
@dblock Thanks for creating this issue, we'd welcome a pull request to address this

@andrross
Copy link
Member

Adding on to my comment here: #12834 (comment)

I don't think LinearRing is truly dead code, as it is used by the Polygon class. My comment is that a LinearRing is just a type of a Line (which it does in fact extend) with some additional constraints (namely that the first and last points are the same). My assertion is that we may be able to get ride of the ShapeType.LINEARRING enum value, but keep the LinearRing class. It would be serializable like any other line and could just delegate to the parent methods. The LinearRing class would still provide enforcement of its additional constraint as well as type safety for the Polygon class to ensure the constituent components of a Polygon are in fact linear rings.

@getsaurabh02 getsaurabh02 moved this from 🆕 New to Later (6 months plus) in Search Project Board Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request Search Search query, autocomplete ...etc
Projects
Status: Later (6 months plus)
Development

No branches or pull requests

3 participants