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

JEXL targeting: Local Time Publish Start and Publish End #667

Open
glogiotatidis opened this issue Aug 22, 2018 · 12 comments
Open

JEXL targeting: Local Time Publish Start and Publish End #667

glogiotatidis opened this issue Aug 22, 2018 · 12 comments
Labels
🎯 Targeting Issues related to targeting users. 🌱 ASR Activity Stream Router

Comments

@glogiotatidis
Copy link
Contributor

glogiotatidis commented Aug 22, 2018

Marked stretch goal since this something we don't currently have. We do publish start / end on the server side using UTC timestamps.

@glogiotatidis glogiotatidis added 🎯 Targeting Issues related to targeting users. 🌱 ASR Activity Stream Router Stretch Goal Not a blocker to deliver milestone labels Aug 22, 2018
@glogiotatidis glogiotatidis self-assigned this Aug 22, 2018
@glogiotatidis glogiotatidis removed the Stretch Goal Not a blocker to deliver milestone label Sep 14, 2018
@glogiotatidis glogiotatidis added Decision When we need to decide on something! and removed ⛔ Blocked labels Nov 14, 2018
@glogiotatidis glogiotatidis removed this from the ASR Integration Fx64 milestone Nov 14, 2018
@glogiotatidis
Copy link
Contributor Author

We need to decide whether we want to continue doing the time filtering on the server, or switch to the client or somehow combine both.

/remind me to discuss with the LCM team in 2 weeks

@reminders reminders bot added the Reminder label Nov 14, 2018
@reminders
Copy link

reminders bot commented Nov 14, 2018

@glogiotatidis set a reminder for Nov 28th 2018

@reminders
Copy link

reminders bot commented Nov 28, 2018

👋 @glogiotatidis, discuss with the LCM team

@jkt230
Copy link

jkt230 commented Dec 12, 2018

I know we discussed this, can you remind me where we landed? - Sorry I searched the notes and I don't think a decision was made.

@glogiotatidis
Copy link
Contributor Author

We agreed that we want to have the option of precise date-time targeting on the client side.

I filed bug 1513819 for the AS team to provide us what we need.

When that's available we can discuss options on how we want this to work and if we want to completelly replace the current publish_start and publish_end mechanism with this one.

@glogiotatidis
Copy link
Contributor Author

@glogiotatidis
Copy link
Contributor Author

DXR:

New code something like:

var d = new Date();    
d = new Date(d.getTime() - d.getTimezoneOffset() * 60000)

We probably want to also have an attribute for time only, so we can target specific times in a day (e.g. show before noon, or between 18:00 and 21:00)

@glogiotatidis
Copy link
Contributor Author

We didn't hit Fx71, removing from milestone

@glogiotatidis glogiotatidis removed this from the Fx 71 Targeting Attributes milestone Oct 14, 2019
@glogiotatidis glogiotatidis added this to the To be named milestone Nov 4, 2019
@glogiotatidis glogiotatidis added ⛔ Blocked and removed Decision When we need to decide on something! labels Nov 4, 2019
@glogiotatidis
Copy link
Contributor Author

Talked with Andrei from AS and we agree that both teams want this. I expect some movement soon.

/remind me in 2 weeks

@reminders reminders bot added the Reminder label Nov 19, 2019
@reminders
Copy link

reminders bot commented Nov 19, 2019

@glogiotatidis set a reminder for Dec 3rd 2019

@reminders
Copy link

reminders bot commented Dec 3, 2019

👋 @glogiotatidis,

@glogiotatidis
Copy link
Contributor Author

It seems we can use currentDate in this form

"2019-12-03T12:30:00" |date < currentDate|date &&
currentDate|date < "2019-12-03T15:30:00" |date

This example evaluates to true only between 12:30 and 15:30 local time. Note that the dates don't have an ending Z, making them local times.

No further changes are needed AS for this to work.

@glogiotatidis glogiotatidis removed this from the Winter Cleanup milestone Feb 6, 2020
@glogiotatidis glogiotatidis removed their assignment Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎯 Targeting Issues related to targeting users. 🌱 ASR Activity Stream Router
Projects
None yet
Development

No branches or pull requests

2 participants