Open VadimDyachenko opened 6 years ago
My version of user story:
1) What is this feature/fix provided for?
Save channels list from raw channels from collection "raw_channels"
2) List the objects you want to add or change, use appropriate API annotations
**Model**
Add class Channel
@Document
public class Channel {
@Field("_id")
private String id;
private String name;
private String ts;
where ts - max ts of message which is stored in raw_messages collection
**Repository**
ChannelsRepository
implement method List<Channel> getRawChannels() - collection "raw_channels"
implement method void saveChannels(List<Channels> channels) - collection "channels"
**Service**
ChannelsService
implement method List<Channel> getRawChannels()
implement method void saveChannels(List<Channels> channels)
This method save list of all channels.
**Controller**
No changes
3) Are there any special requirements or constraints?
ChannelsService method saveChannels runs on schedule.
4) What behavior do you expect? Any examples?
Document example:
{ "_id" : "C703E6B51", "name" : "general" "ts" : "1515767002.000721", }
, where "ts" is max ts of loading channels list from slack
Save channels list from raw channels from collection "raw_channels"
Model
Add class Channel { @Field("_id") private String id; private String name; private String ts;
where ts - max ts of message which is stored in raw_messages collection Repository
ChannelsRepository
implement method List
implement method void saveChannels(List
implement method List
implement method void saveChannels(List
No changes
ChannelsService method saveChannels runs on schedule.
Document example:
{ "_id" : "C703E6B51", "name" : "general" "ts" : "1515767002.000721", }
, where "ts" is max ts of loading channels list from slack
User story: