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

Add numDaysAfterRedactingTradeData #191

Merged

Conversation

rodvar
Copy link
Collaborator

@rodvar rodvar commented Feb 6, 2025

follow up of -> #174

…_AFTER_REDACTING_TRADE_DATA

 - [401fc11] fix compilation error of android node
 - [2c231f5] remove unused files
 - [75f9c1a] Add numDaysAfterRedactingTradeData to be in sync with bisq-network/bisq2#3134
@rodvar rodvar requested a review from HenrikJannsen February 6, 2025 03:13
@rodvar rodvar self-assigned this Feb 6, 2025
@rodvar rodvar added this to the MVP (version 0.1.0) milestone Feb 6, 2025
@rodvar rodvar marked this pull request as draft February 6, 2025 03:14
@rodvar rodvar force-pushed the feature/add_num_days_redacting_bisq2_sec branch from f408fb3 to d4af3e1 Compare February 6, 2025 22:52
@rodvar rodvar marked this pull request as ready for review February 6, 2025 22:54
@rodvar
Copy link
Collaborator Author

rodvar commented Feb 6, 2025

@HenrikJannsen I connected the components with the value coming from the network (node and clients), and made it available for the general settings to display (that's hidden at the moment @nostrbuddha is working on it).

Could you please review and let me know if there is a specific application/validation we need to do with that network number?

Copy link
Contributor

@HenrikJannsen HenrikJannsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it would be better to fully implement it (incl. UI element and API part).

private val _numDaysAfterRedactingTradeData: MutableStateFlow<Int> = MutableStateFlow(90)
override val numDaysAfterRedactingTradeData: StateFlow<Int> get() = _numDaysAfterRedactingTradeData
override suspend fun setNumDaysAfterRedactingTradeData(days: Int) {
// Not applicable for xClients
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should implement the API call as with other properties

@rodvar
Copy link
Collaborator Author

rodvar commented Feb 7, 2025

@HenrikJannsen just checked, this is the UI you are referring to:
Screenshot 2025-02-07 at 17 58 01

I need the settings stuff for that and buddha is working on it, I'll merge this PR and create an issue to do the UI and allow edit (API impl)

@rodvar rodvar merged commit c5f4e6c into bisq-network:main Feb 7, 2025
1 check passed
@rodvar rodvar deleted the feature/add_num_days_redacting_bisq2_sec branch February 7, 2025 07:01
@HenrikJannsen
Copy link
Contributor

See also the controller in Bisq 2 for the validation of the min/max values.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants