-
Notifications
You must be signed in to change notification settings - Fork 19
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
fftimestamp fix, SQL DB persistence implementation #113
Conversation
Signed-off-by: Philip-21 <[email protected]>
Hey @Chengxuan does this adjustment tackle the issue ? |
I also took a look at this issue. I think there is another implementation of the interface in |
@Philip-21 the proposed change looks good to me. As @hanqidd123 pointed out, the public interface itself will need to be changed, as well as other implementations and the consumer side of the code. I've approved the GitHub run so that you can see the areas that also need to be changed, the consumer code of the method is in the simple transaction handler which is also in this repo. So you should be able to make all the changes in the same PR. |
…stence interface Signed-off-by: Philip-21 <[email protected]>
Signed-off-by: Philip-21 <[email protected]>
Hey @Chengxuan I have been able to fix the DB persistence issue, I created a separate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Philip-21 have you tried updating the existing common interface instead of creating a new one?
Yes @Chengxuan I did but, it still boils down to defining all the methods located in the Persistence interface for the The methods for each interface in the If i define the |
https://github.com/hyperledger/firefly-transaction-manager/blob/main/pkg/txhandler/txhandler.go is where the common interface gets defined |
Hey @Chengxuan i tried setting up the SQLinterface in the common interface but i kept getting import cycle errors as i tried to import some packages to be used in defining the methods |
Hi @Philip-21 I suggest you start fresh from the |
Will do that, apologies for the late reply |
Signed-off-by: Philip-21 <[email protected]>
Signed-off-by: Philip-21 <[email protected]>
…ting dates from 2023 to 2024 Signed-off-by: Philip-21 <[email protected]>
… identifiers for unassigned variables Signed-off-by: Philip-21 <[email protected]>
Hey @Chengxuan i have worked on the |
Hi @Philip-21 , your linter configuration seems doesn't match the version specified in the Makefile. You shouldn't need to update all the license headers. Please fix it. Also, the latest change doesn't look correct, the interface still doesn't support time to be passed in. Please let me know if you'd like me to raise a PR to demonstrate how to tackle this. I don't want you to struggle too much with it. |
@Philip-21 sorry don't see your comment here but I did receive a notification: Closing this PR in favor of the one above |
Please can i give it another try in another pr, before asking for help ? |
Hi, @Philip-21 , sorry, I thought it was a Github issue as it's been slow recently. I've raised the PR so feel free to read and approve. Thanks for all the effort made in the PR. I also understand the disappointment of a long PR like this being closed, I hope you are proud of all the learnings on this PR as I'm sure they'll be valuable for your future contribution. 👍 |
Yes i have learned, thank you for putting me through @Chengxuan |
This is pr fixes for #111