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

Source of data to be used for 'Latest Events and News' section #22

Open
0xRampey opened this issue Jul 26, 2017 · 10 comments
Open

Source of data to be used for 'Latest Events and News' section #22

0xRampey opened this issue Jul 26, 2017 · 10 comments

Comments

@0xRampey
Copy link
Member

The current SWD website has this section on the right.
How are we going to fetch data for this section? Statically or from a database?

@mukkachaitanya
Copy link
Member

Which is same as the General notices.

@mukkachaitanya
Copy link
Member

A quick look at the schema; we can see that we have a notices table which allows us to stores the details that need to be shown.

So we need to fetch are from the database. Again this database is updated accordingly by the person uploading it (a SWD staff).

@0xRampey
Copy link
Member Author

So "Latest Events" are obtained by searching for notices from a recent period right?

@SebastinSanty
Copy link
Member

This is why #19 is for. We can use firebase based updations.

@0xRampey
Copy link
Member Author

How is that related? Firebase Cloud Messaging seems to be for real-time data applications like Instant Messaging. 'General notices' are barely updated every 3-4 days.

@mukkachaitanya
Copy link
Member

So "Latest Events" are obtained by searching for notices from a recent period right?

Yes @prampey, that's how it should be done.
Though as of now all the notices in the database are being displayed. The database is probably being cleaned manually whenever necessary. (Not very sure)

@SebastinSanty
Copy link
Member

@prampey yeah, sorry. I was thinking of something else.

@0xRampey
Copy link
Member Author

@mukkachaitanya If possible, can you craft the required GraphQL query and send the data as props to the Home component?
Till then, I can work on automatically populating the lists for the UI cards from the incoming prop data.

@0xRampey
Copy link
Member Author

Nevermind, I'll open up a separate issue for you. Do it at your convenience.

@mukkachaitanya
Copy link
Member

@mukkachaitanya If possible, can you craft the required GraphQL query and send the data as props to the Home component?

@SebastinSanty can you take this up?

Till then, I can work on automatically populating the lists for the UI cards from the incoming prop data.

Yeah sure. Take the above schema as the blue print for the props being returned by the GraphQL query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants