adobe / adobe/aio-lib-java

` events_mgmt` : need a way to add multiple EventsOfInterest when registering a new event consumer

Ouverte
#24 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Java
Étoiles
7
Forks
22
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

### There should be a way to add multiple ProviderId/EventCode combinations when registering an event consumer using this library.

### Currently, there is no way to add multiple EventsOfInterest while registering an event consumer using this library. We need a way to

### Reproduce Scenario (including but not limited to)
Optional created = this.registrationService.createRegistration(
RegistrationInputModel.builder()
.description(this.eventConsumerConfig.event_registration_description())
.name(this.eventConsumerConfig.event_registration_name())

//Only allows one combination of provider and event code!
//What If i want to add more than one combination to listen to in this journal?
.addEventsOfInterests(EventsOfInterest.builder()
.setEventCode(this.eventConsumerConfig.aio_event_code())
.setProviderId(providerId).build())
);
#### Steps to Reproduce
See above

#### Platform and Version
Java 11

#### Sample Code that illustrates the problem
See above

#### Logs taken while reproducing problem
N/A because i cannot add multiple EventsOfInterest

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Commencez par RegistrationInputModel.builder(), addEventsOfInterests() et registrationService.createRegistration() dans l’exemple. Suivez la manière dont EventsOfInterest est stocké pendant l’enregistrement, puis faites en sorte que l’enregistrement accepte plusieurs combinaisons ProviderId/EventCode. C’est terminé lorsqu’un consommateur peut s’enregistrer avec plusieurs EventsOfInterest ; vérifiez-le avec un exemple ou un test Java 11 s’il en existe un.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
java
Domaine
api
Type d'issue
Fonctionnalité
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
38/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.