agrubb86 opened a new issue #18634:
URL: https://github.com/apache/airflow/issues/18634


   ### Describe the issue with documentation
   
   With the upgrade from Pendulum 1.x to 2.x that coincides with upgrading from 
Airflow 1.x to 2.x, there are some breaking changes that aren't mentioned here:
   
[https://airflow.apache.org/docs/apache-airflow/stable/upgrading-from-1-10/index.html](Upgrading
 from 1.x to 2.x)
   
   The specific breaking change I experienced is the .copy() method is 
completely removed in Pendulum 2.x. It turns out this isn't needed in my case 
as each macro that provides a pendulum.Pendulum provides a brand new instance, 
but it still caught me by surprise.
   
   I also noticed that the stable documentation (2.1.4 at time of writing) for 
macros still links to Pendulum 1.x:
   
[https://airflow.apache.org/docs/apache-airflow/stable/macros-ref.html](Macros 
reference)
   
   Specifically the macros: execution_date, prev_execution_date, 
prev_execution_date_success, prev_start_date_success, next_execution_date
   
   ### How to solve the problem
   
   The macros reference links definitely need to be changed to Pendulum 2.x, 
maybe it would be a nice-to-have in the 1.x -> 2.x documentation but I was 
effectively using .copy() in a misguided way so I wouldn't say it's totally 
necessary.
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to