Comments (4)
Testing more on the old calypso masterbar, p2, and network admin:
- Tab open, Notification made, dot comes on.
- Requests to notifications show a last-seen-time that is consistent and doesn't change as this gets rerequested.
![Screenshot 2024-03-08 at 12 39 30 PM](https://private-user-images.githubusercontent.com/28742426/311318298-a5a9134e-e2a8-4910-af58-b2a3ba8415a1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTAzNzgwMDEsIm5iZiI6MTcxMDM3NzcwMSwicGF0aCI6Ii8yODc0MjQyNi8zMTEzMTgyOTgtYTVhOTEzNGUtZTJhOC00OTEwLWFmNTgtYjJhM2JhODQxNWExLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE0VDAwNTUwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTRmNzBjZWExMGVjZWQ5ZWQ3MjQxZDI5NGMxMWYxMDEwYTliZDQwMWU1ZDBmNzI3ZjQ5OWJlNDdlZGM2MWVjZGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.el5d9ydQbt_ire9ZeYb9w0B8V1kCFHagSMpkbT-tyzg)
- Reload the tab.
- Initial requests to notifications have the same last-seen-time as the previous load.
- A request goes out to mark notifications as seen and update the last-seen-time.
![Screenshot 2024-03-08 at 12 39 13 PM](https://private-user-images.githubusercontent.com/28742426/311318436-da5c09a5-fbfa-4bb5-9d2a-dad2d5db3b18.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTAzNzgwMDEsIm5iZiI6MTcxMDM3NzcwMSwicGF0aCI6Ii8yODc0MjQyNi8zMTEzMTg0MzYtZGE1YzA5YTUtZmJmYS00YmI1LTlkMmEtZGFkMmQ1ZGIzYjE4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE0VDAwNTUwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQxZWJlN2M0YzM1YTQ5Nzc1ZDllOTRmNTBkZWJkYmYwMmZlZDNjNTg1OGZiOTJhOWM5YmQ5NjllZjc0Y2JjMmQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.CEXwjHfA8FkyO6xWomlGVaCjkMCoCQoborUSL64ZzIY)
![Screenshot 2024-03-08 at 12 39 23 PM](https://private-user-images.githubusercontent.com/28742426/311318437-ed12c8f2-d9de-4f48-b652-9414898d6372.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTAzNzgwMDEsIm5iZiI6MTcxMDM3NzcwMSwicGF0aCI6Ii8yODc0MjQyNi8zMTEzMTg0MzctZWQxMmM4ZjItZDlkZS00ZjQ4LWI2NTItOTQxNDg5OGQ2MzcyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE0VDAwNTUwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTE4NTRkOGRhZTI4ODRmYjQzMmFmODYwZDkwODA5MjMxOGM2NDAyMmUwMDQyZDcxZTM2YTc5YWU0NDNiMTdiOTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.sRG7ad-3KTsFpwcbjQsyrMShNaRaBm3Y0pzJehIwlOs)
- notif requests after that have the updated last seen time and the dot goes away.
![Screenshot 2024-03-08 at 12 39 58 PM](https://private-user-images.githubusercontent.com/28742426/311318550-6c41dabf-c547-43f0-a552-3f38247c09c5.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTAzNzgwMDEsIm5iZiI6MTcxMDM3NzcwMSwicGF0aCI6Ii8yODc0MjQyNi8zMTEzMTg1NTAtNmM0MWRhYmYtYzU0Ny00M2YwLWE1NTItM2YzODI0N2MwOWM1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDAzMTQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwMzE0VDAwNTUwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWVhMTNjMjkwYmI3NDEwYjJhNzBmNzk2NmU5YTY1ZGQ1Mjg4MjM5MDAwM2FmOGYyZTBlN2M3MjI3M2QzYzBkMmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.kPp4-PUFTuw0vWrWojBn1Z-tdthohh-RNqgKwOoDpR8)
- When reloading with no new notifications, the /seen never goes out. It seems that these components are always sending a request to /seen when they load IF there is an unseen notification.
Testing on global sidebar at global level: the /seen never gets sent out and this continues to work as expected.
from wp-calypso.
@fullofcaffeine I see you are the most recent contributor to the apps/notifications readme, if you might have any ideas about the above or who to ping. We have the post request for /notifications/seen going out when it shouldn't be.
I tried building calypso dev, sync'd the notes build to my sandbox, sandboxed widgets, etc. and have been trying to test around this, but this is weird. I only see 1 place that calls to sendLastSeenTime which seems is responsible for that post request, but I don't see it called when debugging locally. I can see the updateLastSeenTime
debugging commands go off in general use, but when the problematic request goes out none of these debug lines fire. Further I can update that function to change the URL to something other than /notifications/seen and build/sync changes, and the call to /notifications/seen still goes off in the network tab. 🤷♀️ 😵
I feel like im missing some steps in getting the development environment for this setup correctly.
from wp-calypso.
I tried building calypso dev, sync'd the notes build to my sandbox, sandboxed widgets, etc. and have been trying to test around this
It seems like there is something related to sandboxing the selected site? This is a really weird end of day find, as it doesn't seem to make any sense but also is consistent in testing.
- Testing on
/home
- build and sync the apps/notifications to your sandbox. You don't need any changes, just a sync'd build.
- sandbox public-api, widgets, AND the site you have selected in my-home
- I can no longer reproduce the issue.
As soon as i unsandbox the selected site URL, the issue comes back. Similarly, if I remove the sync'd app build from my sandbox the issue comes back as well, even though that sync'd build had no actual code changes.
The part about the selected site is WEIRD - but it does fit with my initial findings above regarding the discrepency between test B
and E
- its the same component and sidebar... but at the no site selected level there is no bug, and at the site selected level there is...
from wp-calypso.
A clarifying Update!
Im finding that the problem within calypso is due to notifications from within the site preview. This explains why my local debugging in calypso wasnt working, and explains the discrepency between B
and E
in the initial tests. If i remove the site preview component from my home, i can no longer repro the issue.
So the problem seems to be within the standalone section of the notes app. I was focusing deeper inside the Panel section since that is all that calypso uses and the bug was reproducible there. Important note - the problem isn't specifically that notes are loaded in site previews, this problem happens everywhere the standalone notes app is loaded. I will continue to investigate more.
from wp-calypso.
Related Issues (20)
- Purchase Management: "Excludes tax" placement is odd when the renewal price also has an introductory offer HOT 1
- O2 Plugin: like widget appears cut
- Checkout: Postal code validation error is incorrect for Germany HOT 3
- Checkout: Fields use a mixture of rounded and square corners HOT 2
- Classic Editor | Bug | "Set Featured Image" button in browser in mobile breakpoints disabled HOT 4
- Fix /plugins/scheduled-updates route detection error
- Checkoutv2: Akismet 'Number of licenses' dropdown does not work. HOT 3
- Reader: paid posts only -feed
- Two-year discount behaves strangely when multiple Jetpack products are in the cart HOT 1
- Add the Subscription block after the post toggle to Calypso Newsletter settings
- Accept-Invite: Investigate adding details for migrations
- [Feature Request] Unified Cart for Multiple Sites HOT 1
- [Continue with GitHub] Remove unnecessary states and Popover component the GitHub button
- [Continue with GitHub] Launch to production
- It seems to be possible to create a WooPayments account before confirming an email address of a WordPress.com account HOT 3
- Fix fetching prices for related products
- Checkoutv2: Hide site preview on Atomic sites HOT 1
- Typekit CSP issue HOT 1
- Migration User step: Remove customers from invitations
- Scheduled Updates: Time dropdowns break lines on small screens
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 wp-calypso.