Comments (15)
@krishnaacharyaa can I take this issue ?
from wanderlust.
@soheb-btw sure
Assigning it to you
Please let us know the time estimation to complete the task
from wanderlust.
@krishnaacharyaa I am unable to run recreate the bug on local, sorting seems to be fine on local.
while going through the code I have seen that all the posts that didn't had timeOfPost values in db would give you current time and date when api/posts is called.
from wanderlust.
Are there any post in db that don't have timeOfPost value ?
from wanderlust.
Good catch @soheb-btw , I suspect the problem is with the initial db values which is sample data.json from the readme file ....(ref)
Youu would may be able to reproduce there, if not .... Let me know I'll send the original db's json content....
I suspect that's the issue because I don't see timeofPost value in the sample data
from wanderlust.
I did import data from sample_posts.json while setting up the project and then removed all data for testing, both cases I was facing the date issue.
It will be great if you can send the original db's json and then I can debug further and we can know for sure.
from wanderlust.
Sure, tomorrow I'll send , please remind me if I forget, either here or in discord, tag master
from wanderlust.
Hi @soheb-btw, Please use this for reference, straight from the db, Let me know if you need more support, we can get on a call and resolve
wanderlust.posts.json
from wanderlust.
Hi @krishnaacharyaa missing timeOfPost values are creating the issue. It cannot be empty.
from wanderlust.
Sure @soheb-btw, thank you for the root cause. So were all do we have to change I guess the sample data and the db data right?
from wanderlust.
yes, we need add missing timeOfPost values in both files.
from wanderlust.
And one more change is required in /api/posts route, Assuming in All Posts section we are showing latest posts first, its sorting logic is not implemented for the route. I have made the code changes can I make a pull request for this ?
from wanderlust.
Sure, can you please follow the contributing guidelines and raise PR. @soheb-btw
from wanderlust.
@krishnaacharyaa I have created the pull request from a different account.
from wanderlust.
@soheb-btw I have addressed the PR, kindly make the changes and let me know
from wanderlust.
Related Issues (20)
- [ENHANCEMENT] Refactoring of all the md: to sm:
- app is not dockerize HOT 2
- [BUG] No Loading screen when posts are filtered based on the category HOT 4
- [BUG] Footer is not added as per in the figma file
- [BUG] All posts card is not inline with the skeleton (shimmer card) HOT 12
- [BUG] Featured posts card is not inline with the skeleton card (shimmer card) HOT 2
- [BUG] Latest posts card is not inline with the skeleton card (shimmer card) HOT 13
- [ENHANCEMENT] Better the lighthouse score in mobile device HOT 9
- [BUG] User Can type anything in title, authorname and description HOT 17
- [BUG] We have to scroll to find the footer even if there is space for the footer in the description, add blog page in both desktop and mobile HOT 3
- [FEATURE] Creating schema for the users collection HOT 2
- [FEATURE] Implementing backend controllers and routes for authentication
- [FEATURE] Dockerize the application HOT 5
- Separating backend calls into a separate file or folder HOT 2
- [FEATURE] Connecting backend auth controllers with the frontend HOT 2
- [ENHANCEMENT] Adding Admin UI screens
- [ENHANCEMENT] Implement Heap Logging
- [BUG] Theme changes to light mode on page refresh in add blogs page HOT 1
- [BUG] Categories Sidebar UI issue While Theme changes, Alignment changes HOT 1
- [FEATURE] adding admin middleware and admin related protected routes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wanderlust.