prmr / Creco

Recommendation System for Consumer Products
Apache License 2.0
6 stars 2 forks source link

Session Management #17

Closed enewe101 closed 10 years ago

enewe101 commented 10 years ago

Define a class structure responsible for storing the user session information. Based on our discussion today, this should probably contain the following (these are just suggestions):

Investigate what facilities Spring provides to store data in association to a user-session, and, design these session objects in a way that fits Spring's session paradigm.

asutcl commented 10 years ago

Hi Priya,

I see you took ownership of this issue. I was thinking of working on it since I need the score objects for my part. Should I write up simple objects in a branch and push them to the repository for your to start from or do you think you will be able to push objects early tomorrow that I can use to build my Attribute Extractor?

Thanks!

priyasidhaye commented 10 years ago

Hi Andrew,

I was going to propose a structure for it in Tuesday's class. I don't think I can get it done till tomorrow morning, so go ahead with it.

Thanks.

enewe101 commented 10 years ago

IMO you might both be talking about different things.

Keep in mind that the AttributeExtractor is not the only module that will write to the session. Lucene will also write. There will be a few session-reader's and -writers.

Do what makes sense, but I would suggest that, Andrew, you could focus on building the AttributeExtractor and assume that the session will be able to hold whatever data you want it to.

On the other hand, we need someone to investigate what mession management facilities exist for Spring, so that they can teach the group how to interact with the session. It might be the case that a app-specific SessionManager class needs to get built---that would depend on what facilities Spring provides. Priya---based on our discussion I think you shuold look into how session management is done in Spring for Tues.

Does that work for you?

priyasidhaye commented 10 years ago

Yes that was the original plan, works for me.

asutcl commented 10 years ago

I just want to clarify where the AttributeScore object should be defined. I can define it as part of my package and return a list of them to the session manager in response to a query. The sessions can then keep track of these how ever is necessary. Although I saw that the AttribtueScore was defined in this issue, so I was wondering.

I will go ahead and create the ArributeScore Objects in my package for now. To prevent future confusion I think we need to build a nice class diagram together to know where everything lives and how things communicate with one another.

asutcl commented 10 years ago

Sorry I reread the definition. Last class I thought AttributeScore ment the score given by the feature extractor. This class says it captures the user preferences. It's different. I'll create a class called AttributeRelevance for now for my part and we can modify or refractor it later.

enewe101 commented 10 years ago

Agreed about the class diagram -- that will help a lot. I'll try to bring a draft on Tues so that we'll have a good starting point. Def something to finalize in-group like you say.

My bad for introducing confusion when I wrote out the definition :)

enewe101 commented 10 years ago

The session is in the jurisdiction of the frontend controller. For now I'm giving this issue to Shuo. Shuo, let us know if you need help :)

asutcl commented 10 years ago

Milestone one is complete for please move any discussion about added features to milestone 2 issues.