Investigate possible dead code involving topicConfig

Open
#134 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java

Research direction

Read core/src/main/java/com/homeaway/streamplatform/streamregistry/db/dao/AbstractDao.java around lines 160–163 and trace how topicConfigMap is used in the method and its callers. Check whether removing it changes stream behavior; if it is ignored, confirm the argument is unnecessary and identify the appropriate level for future support. The issue provides no test path, so inspect the related DAO tests and use them to verify the behavior.

Written by the indexing model from the issue text.

Description

enhancement

Desired Behavior

See this possible dead code involving topicConfig.

https://github.com/homeaway/stream-registry/blob/553345fff8ed6997c1134820343ca6677ee4596b/core/src/main/java/com/homeaway/streamplatform/streamregistry/db/dao/AbstractDao.java#L160-L163

Seems like this code can be deleted and have no effect at all. If true, topicConfigMap argument is totally ignored.

Benefits

  • topicConfigMap won't be ignored and will be stored on various streams

Recommendation

  • If indeed ignored... remove from method signature and add new issue to support topicConfig at appropriate level (probably when bindings #31 are supported)
Dominant language
Java
Stars
124
Forks
56
Avg merge
1h 57m
Merged PRs (30d)
1

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ExpediaGroup/stream-registry

All issues in ExpediaGroup/stream-registry

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.