Checklist:
argocd version.Describe the bug
Setting a revision history limit (App Details > Edit > REVISION HISTORY LIMIT) and saving generates the following error in the UI:
Unable to save changes: json: cannot unmarshal string into Go struct field ApplicationSpec.spec.revisionHistoryLimit of type int64
To Reproduce
Editing the following Application manifest via the UI causes this error for me every time:
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: grafana
namespace: argocd
spec:
destination:
namespace: default
server: https://kubernetes.default.svc
project: default
source:
chart: grafana
helm:
valueFiles:
- values.yaml
repoURL: https://kubernetes-charts.storage.googleapis.com/
targetRevision: 5.0.*
Expected behavior
By my understanding it should set the revision limit without erroring
Screenshots

Version
v1.5.2+c2c19f4
Confirmed as of v1.5.3+095c5d6 as well.
v1.5.5+0fdef48 too
Anyways, it can be set directly on application.yaml files:
spec:
destination:
namespace: svc-test
server: 'https://kubernetes.default.svc'
project: poc
revisionHistoryLimit: 5
source:
path: test/argo-csharp/webserver
repoURL: 'https://bitbucket/scm/poc/gitops.git'
targetRevision: HEAD
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- Validate=false
Always in 1.7.10, any news ?
Fix is on the way :) https://github.com/argoproj/argo-cd/pull/5035
Most helpful comment
v1.5.5+0fdef48 too
Anyways, it can be set directly on application.yaml files: