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

Data Brew Recipe Publish does not update Create Date on Latest Working Copy #7666

Closed
runstache opened this issue May 3, 2024 · 0 comments · Fixed by #7667
Closed

Data Brew Recipe Publish does not update Create Date on Latest Working Copy #7666

runstache opened this issue May 3, 2024 · 0 comments · Fixed by #7667
Labels

Comments

@runstache
Copy link
Contributor

When a recipe is published in Data Brew, the Create Date of the Latest Working Version appears to be set to the most recent Publish Date based on results observed in Boto3 1.34.x executions in AWS Data Brew.

Line 480

Should be able to correct this by adding the following in FakeRecipe Class:

    def publish(self, description: Optional[str] = None) -> None:
        self.latest_published = self.latest_working
        self.latest_working = deepcopy(self.latest_working)
        self.latest_published.publish(description)
        del self.versions[self.latest_working.version]
        self.versions[self.latest_published.version] = self.latest_published
        self.latest_working.version = self.latest_published.version + 0.1
        # Update the Latest working Creation Date to the previous Publish Time
        self.latest_working.created_time = self.latest_published.published_date
        self.versions[self.latest_working.version] = self.latest_working
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants